Skip to content

Commit a714b16

Browse files
committed
Auto-generated commit
1 parent a90de6b commit a714b16

File tree

3 files changed

+7
-35
lines changed

3 files changed

+7
-35
lines changed

.github/.keepalive

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

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
"@stdlib/array-typed-ctors": "^0.1.0",
4343
"@stdlib/array-zeros": "^0.1.0",
4444
"@stdlib/assert-is-nonnegative-integer": "^0.1.0",
45-
"@stdlib/assert-is-uint8array": "^0.1.0",
45+
"@stdlib/assert-is-uint8array": "^0.1.1",
4646
"@stdlib/buffer-alloc-unsafe": "^0.1.0",
4747
"@stdlib/ndarray-base-bytes-per-element": "^0.1.0",
48-
"@stdlib/string-format": "^0.1.0",
48+
"@stdlib/string-format": "^0.1.1",
4949
"@stdlib/types": "^0.1.0"
5050
},
5151
"devDependencies": {
@@ -61,8 +61,8 @@
6161
"@stdlib/array-uint32": "^0.1.0",
6262
"@stdlib/array-uint8": "^0.1.0",
6363
"@stdlib/array-uint8c": "^0.1.0",
64-
"@stdlib/assert-instance-of": "^0.1.0",
65-
"@stdlib/assert-is-array": "^0.1.0",
64+
"@stdlib/assert-instance-of": "^0.1.1",
65+
"@stdlib/assert-is-array": "^0.1.1",
6666
"@stdlib/assert-is-typed-array": "^0.1.0",
6767
"@stdlib/assert-is-typed-array-like": "^0.1.0",
6868
"@stdlib/bench": "^0.1.0",

test/dist/test.js

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,40 +21,13 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var proxyquire = require( 'proxyquire' );
25-
var main = require( './../../dist/main.js' );
26-
var polyfill = require( './../../dist/polyfill.js' );
27-
var empty = require( './../../dist' );
24+
var main = require( './../../dist' );
2825

2926

3027
// TESTS //
3128

32-
tape( 'main export is a function', function test( t ) {
29+
tape( 'main export is defined', function test( t ) {
3330
t.ok( true, __filename );
34-
t.strictEqual( typeof empty, 'function', 'main export is a function' );
31+
t.strictEqual( main !== void 0, true, 'main export is defined' );
3532
t.end();
3633
});
37-
38-
tape( 'if an environment supports Node.js buffer instances inheriting from Uint8Array, the main export supports returning arrays having uninitialized memory', function test( t ) {
39-
var empty = proxyquire( './../dist', {
40-
'./is_buffer_uint8array.js': mock
41-
});
42-
t.strictEqual( empty, main, 'returns expected value' );
43-
t.end();
44-
45-
function mock() {
46-
return true;
47-
}
48-
});
49-
50-
tape( 'if an environment does not support Node.js buffer instances inheriting from Uint8Array, the main export supports returning zero-filled arrays', function test( t ) {
51-
var empty = proxyquire( './../dist', {
52-
'./is_buffer_uint8array.js': mock
53-
});
54-
t.strictEqual( empty, polyfill, 'returns expected value' );
55-
t.end();
56-
57-
function mock() {
58-
return false;
59-
}
60-
});

0 commit comments

Comments
 (0)