Skip to content

Commit 3c17741

Browse files
committed
Auto-generated commit
1 parent a377da2 commit 3c17741

3 files changed

Lines changed: 11 additions & 44 deletions

File tree

.github/.keepalive

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

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@
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",
45-
"@stdlib/utils-eval": "^0.1.0"
43+
"@stdlib/cli-ctor": "^0.1.1",
44+
"@stdlib/fs-read-file": "^0.1.1",
45+
"@stdlib/utils-eval": "^0.1.1"
4646
},
4747
"devDependencies": {
48-
"@stdlib/assert-is-boolean": "^0.1.0",
49-
"@stdlib/assert-is-browser": "^0.1.0",
50-
"@stdlib/assert-is-windows": "^0.1.0",
48+
"@stdlib/assert-is-boolean": "^0.1.1",
49+
"@stdlib/assert-is-browser": "^0.1.1",
50+
"@stdlib/assert-is-windows": "^0.1.1",
5151
"@stdlib/bench": "^0.1.0",
52-
"@stdlib/process-exec-path": "^0.1.0",
52+
"@stdlib/process-exec-path": "^0.1.1",
5353
"proxyquire": "^2.0.0",
5454
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5555
"istanbul": "^0.4.1",

test/dist/test.js

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2021 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,45 +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' );
31+
t.strictEqual( main !== void 0, true, 'main export is defined' );
3332
t.end();
3433
});
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 `() => {}` is supported, detection result is `true`', function test( t ) {
42-
var detect = proxyquire( './../dist/main.js', {
43-
'@stdlib/utils-eval': stub
44-
});
45-
46-
t.ok( detect(), 'detection result is `true`' );
47-
t.end();
48-
49-
function stub() {
50-
return 'beep';
51-
}
52-
});
53-
54-
tape( 'if `() => {}` is not supported, detection result is `false`', function test( t ) {
55-
var detect = proxyquire( './../dist/main.js', {
56-
'@stdlib/utils-eval': stub
57-
});
58-
59-
t.notOk( detect(), 'detection result is `false`' );
60-
t.end();
61-
62-
function stub() {
63-
throw new Error( 'boop' );
64-
}
65-
});

0 commit comments

Comments
 (0)