Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4b8d49e

Browse filesBrowse files
committed
Auto-generated commit
1 parent 61a72c8 commit 4b8d49e
Copy full SHA for 4b8d49e

File tree

Expand file treeCollapse file tree

3 files changed

+9
-57
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+9
-57
lines changed

‎.github/.keepalive

Copy file name to clipboardExpand all lines: .github/.keepalive
-1Lines changed: 0 additions & 1 deletion
This file was deleted.

‎package.json

Copy file name to clipboardExpand all lines: package.json
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
"@stdlib/assert-has-float64array-support": "^0.1.0"
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-float64array": "^0.1.0",
47-
"@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-float64array": "^0.1.1",
47+
"@stdlib/assert-is-function": "^0.1.1",
4848
"@stdlib/assert-is-nonnegative-integer": "^0.1.0",
4949
"@stdlib/bench": "^0.1.0",
5050
"@stdlib/math-base-special-pow": "^0.1.0",

‎test/dist/test.js

Copy file name to clipboard
+4-51Lines changed: 4 additions & 51 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,60 +21,13 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var proxyquire = require( 'proxyquire' );
25-
var hasFloat64ArraySupport = require( '@stdlib/assert-has-float64array-support' );
26-
var polyfill = require( './../../dist/polyfill.js' );
27-
var ctor = require( './../../dist' );
28-
29-
30-
// VARIABLES //
31-
32-
var hasFloat64Arrays = hasFloat64ArraySupport();
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 `Float64Array`, the export is an alias for `Float64Array`', function test( t ) {
44-
var Foo;
45-
46-
Foo = proxyquire( './../dist', {
47-
'@stdlib/assert-has-float64array-support': isTrue,
48-
'./main.js': Mock
49-
});
50-
t.strictEqual( Foo, Mock, 'returns builtin' );
51-
52-
if ( hasFloat64Arrays ) {
53-
t.strictEqual( ctor, Float64Array, '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 `Float64Array`, the export is a polyfill', function test( t ) {
68-
var Foo;
69-
70-
Foo = proxyquire( './../dist', {
71-
'@stdlib/assert-has-float64array-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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.