Skip to content

Commit 0ae0db4

Browse files
committed
Auto-generated commit
1 parent 1dd599d commit 0ae0db4

File tree

3 files changed

+10
-47
lines changed

3 files changed

+10
-47
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@
4040
"url": "https://github.com/stdlib-js/stdlib/issues"
4141
},
4242
"dependencies": {
43-
"@stdlib/cli-ctor": "^0.1.0",
44-
"@stdlib/fs-read-file": "^0.1.0"
43+
"@stdlib/cli-ctor": "^0.1.1",
44+
"@stdlib/fs-read-file": "^0.1.1"
4545
},
4646
"devDependencies": {
47-
"@stdlib/assert-is-boolean": "^0.1.0",
48-
"@stdlib/assert-is-browser": "^0.1.0",
49-
"@stdlib/assert-is-windows": "^0.1.0",
47+
"@stdlib/assert-is-boolean": "^0.1.1",
48+
"@stdlib/assert-is-browser": "^0.1.1",
49+
"@stdlib/assert-is-windows": "^0.1.1",
5050
"@stdlib/bench": "^0.1.0",
51-
"@stdlib/process-exec-path": "^0.1.0",
51+
"@stdlib/process-exec-path": "^0.1.1",
5252
"proxyquire": "^2.0.0",
5353
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5454
"istanbul": "^0.4.1",

test/dist/test.js

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2018 The Stdlib Authors.
4+
* Copyright (c) 2023 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -21,49 +21,13 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var proxyquire = require( 'proxyquire' );
25-
var detect = require( './../../dist' );
24+
var main = require( './../../dist' );
2625

2726

2827
// TESTS //
2928

30-
tape( 'main export is a function', function test( t ) {
29+
tape( 'main export is defined', function test( t ) {
3130
t.ok( true, __filename );
32-
t.strictEqual( typeof detect, 'function', 'main export is a function' );
33-
t.end();
34-
});
35-
36-
tape( 'feature detection result is a boolean', function test( t ) {
37-
t.strictEqual( typeof detect(), 'boolean', 'detection result is a boolean' );
38-
t.end();
39-
});
40-
41-
tape( 'if functions have a `name` property, detection result is `true`', function test( t ) {
42-
var detect;
43-
var stub;
44-
45-
stub = {};
46-
stub.name = 'foo';
47-
48-
detect = proxyquire( './../dist/main.js', {
49-
'./foo.js': stub
50-
});
51-
52-
t.strictEqual( detect(), true, 'detection result is `true`' );
53-
t.end();
54-
});
55-
56-
tape( 'if functions do not have a `name` property, detection result is `false`', function test( t ) {
57-
var detect;
58-
var stub;
59-
60-
stub = {};
61-
stub.name = null;
62-
63-
detect = proxyquire( './../dist/main.js', {
64-
'./foo.js': stub
65-
});
66-
67-
t.strictEqual( detect(), false, 'detection result is `false`' );
31+
t.strictEqual( main !== void 0, true, 'main export is defined' );
6832
t.end();
6933
});

0 commit comments

Comments
 (0)