diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 3d93e53..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2023-10-01T05:29:18.633Z diff --git a/package.json b/package.json index 0f8f182..0db15df 100644 --- a/package.json +++ b/package.json @@ -42,10 +42,10 @@ "@stdlib/array-typed-ctors": "^0.1.0", "@stdlib/array-zeros": "^0.1.0", "@stdlib/assert-is-nonnegative-integer": "^0.1.0", - "@stdlib/assert-is-uint8array": "^0.1.0", + "@stdlib/assert-is-uint8array": "^0.1.1", "@stdlib/buffer-alloc-unsafe": "^0.1.0", "@stdlib/ndarray-base-bytes-per-element": "^0.1.0", - "@stdlib/string-format": "^0.1.0", + "@stdlib/string-format": "^0.1.1", "@stdlib/types": "^0.1.0" }, "devDependencies": { @@ -61,8 +61,8 @@ "@stdlib/array-uint32": "^0.1.0", "@stdlib/array-uint8": "^0.1.0", "@stdlib/array-uint8c": "^0.1.0", - "@stdlib/assert-instance-of": "^0.1.0", - "@stdlib/assert-is-array": "^0.1.0", + "@stdlib/assert-instance-of": "^0.1.1", + "@stdlib/assert-is-array": "^0.1.1", "@stdlib/assert-is-typed-array": "^0.1.0", "@stdlib/assert-is-typed-array-like": "^0.1.0", "@stdlib/bench": "^0.1.0", diff --git a/test/dist/test.js b/test/dist/test.js index a1828c0..a8a9c60 100644 --- a/test/dist/test.js +++ b/test/dist/test.js @@ -21,40 +21,13 @@ // MODULES // var tape = require( 'tape' ); -var proxyquire = require( 'proxyquire' ); -var main = require( './../../dist/main.js' ); -var polyfill = require( './../../dist/polyfill.js' ); -var empty = require( './../../dist' ); +var main = require( './../../dist' ); // TESTS // -tape( 'main export is a function', function test( t ) { +tape( 'main export is defined', function test( t ) { t.ok( true, __filename ); - t.strictEqual( typeof empty, 'function', 'main export is a function' ); + t.strictEqual( main !== void 0, true, 'main export is defined' ); t.end(); }); - -tape( 'if an environment supports Node.js buffer instances inheriting from Uint8Array, the main export supports returning arrays having uninitialized memory', function test( t ) { - var empty = proxyquire( './../dist', { - './is_buffer_uint8array.js': mock - }); - t.strictEqual( empty, main, 'returns expected value' ); - t.end(); - - function mock() { - return true; - } -}); - -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 ) { - var empty = proxyquire( './../dist', { - './is_buffer_uint8array.js': mock - }); - t.strictEqual( empty, polyfill, 'returns expected value' ); - t.end(); - - function mock() { - return false; - } -});