Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 44d9ca2

Browse files
committed
Auto-generated commit
1 parent 9d25421 commit 44d9ca2

File tree

3 files changed

+11
-59
lines changed

3 files changed

+11
-59
lines changed

.github/.keepalive

-1
This file was deleted.

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@
3737
"url": "https://github.com/stdlib-js/stdlib/issues"
3838
},
3939
"dependencies": {
40-
"@stdlib/assert-has-uint8array-support": "^0.1.0"
40+
"@stdlib/assert-has-uint8array-support": "^0.1.1"
4141
},
4242
"devDependencies": {
43-
"@stdlib/assert-has-property": "^0.1.0",
44-
"@stdlib/assert-is-arraybuffer": "^0.1.0",
45-
"@stdlib/assert-is-boolean": "^0.1.0",
46-
"@stdlib/assert-is-function": "^0.1.0",
43+
"@stdlib/assert-has-property": "^0.1.1",
44+
"@stdlib/assert-is-arraybuffer": "^0.1.1",
45+
"@stdlib/assert-is-boolean": "^0.1.1",
46+
"@stdlib/assert-is-function": "^0.1.1",
4747
"@stdlib/assert-is-nonnegative-integer": "^0.1.0",
48-
"@stdlib/assert-is-uint8array": "^0.1.0",
48+
"@stdlib/assert-is-uint8array": "^0.1.1",
4949
"@stdlib/bench": "^0.1.0",
5050
"@stdlib/math-base-special-pow": "^0.1.0",
51-
"@stdlib/math-base-special-round": "^0.1.0",
51+
"@stdlib/math-base-special-round": "^0.1.1",
5252
"@stdlib/random-base-randi": "^0.1.0",
5353
"@stdlib/random-base-randu": "^0.1.0",
5454
"@stdlib/symbol-iterator": "^0.1.0",

test/dist/test.js

+4-51
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,60 +21,13 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var proxyquire = require( 'proxyquire' );
25-
var hasUint8ArraySupport = require( '@stdlib/assert-has-uint8array-support' );
26-
var polyfill = require( './../../dist/polyfill.js' );
27-
var ctor = require( './../../dist' );
28-
29-
30-
// VARIABLES //
31-
32-
var hasUint8Arrays = hasUint8ArraySupport();
24+
var main = require( './../../dist' );
3325

3426

3527
// TESTS //
3628

37-
tape( 'main export is a function', function test( t ) {
29+
tape( 'main export is defined', function test( t ) {
3830
t.ok( true, __filename );
39-
t.strictEqual( typeof ctor, 'function', 'main export is a function' );
40-
t.end();
41-
});
42-
43-
tape( 'if an environment supports `Uint8Array`, the export is an alias for `Uint8Array`', function test( t ) {
44-
var Foo;
45-
46-
Foo = proxyquire( './../dist', {
47-
'@stdlib/assert-has-uint8array-support': isTrue,
48-
'./main.js': Mock
49-
});
50-
t.strictEqual( Foo, Mock, 'returns builtin' );
51-
52-
if ( hasUint8Arrays ) {
53-
t.strictEqual( ctor, Uint8Array, 'is alias' ); // eslint-disable-line stdlib/require-globals
54-
}
55-
31+
t.strictEqual( main !== void 0, true, 'main export is defined' );
5632
t.end();
57-
58-
function Mock() {
59-
return this;
60-
}
61-
62-
function isTrue() {
63-
return true;
64-
}
65-
});
66-
67-
tape( 'if an environment does not support `Uint8Array`, the export is a polyfill', function test( t ) {
68-
var Foo;
69-
70-
Foo = proxyquire( './../dist', {
71-
'@stdlib/assert-has-uint8array-support': isFalse
72-
});
73-
74-
t.strictEqual( Foo, polyfill, 'returns polyfill' );
75-
t.end();
76-
77-
function isFalse() {
78-
return false;
79-
}
8033
});

0 commit comments

Comments
 (0)