Skip to content

Commit a65ca20

Browse files
committed
Auto-generated commit
1 parent 869d5ea commit a65ca20

File tree

3 files changed

+12
-62
lines changed

3 files changed

+12
-62
lines changed

.github/.keepalive

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

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,22 @@
4141
"url": "https://github.com/stdlib-js/stdlib/issues"
4242
},
4343
"dependencies": {
44-
"@stdlib/assert-is-error": "^0.1.0",
45-
"@stdlib/math-base-assert-is-nanf": "^0.1.0",
44+
"@stdlib/assert-is-error": "^0.1.1",
45+
"@stdlib/math-base-assert-is-nanf": "^0.1.1",
4646
"@stdlib/math-base-assert-is-negative-zerof": "^0.1.0",
47-
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.1.0",
48-
"@stdlib/utils-library-manifest": "^0.1.0",
49-
"@stdlib/utils-try-require": "^0.1.0"
47+
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.1.1",
48+
"@stdlib/utils-library-manifest": "^0.1.1",
49+
"@stdlib/utils-try-require": "^0.1.1"
5050
},
5151
"devDependencies": {
5252
"@stdlib/array-float32": "^0.1.0",
53-
"@stdlib/assert-is-browser": "^0.1.0",
53+
"@stdlib/assert-is-browser": "^0.1.1",
5454
"@stdlib/bench": "^0.1.0",
55-
"@stdlib/blas-base-scopy": "^0.1.0",
55+
"@stdlib/blas-base-scopy": "^0.1.1",
5656
"@stdlib/math-base-assert-is-positive-zerof": "^0.1.0",
5757
"@stdlib/math-base-special-floor": "^0.1.0",
5858
"@stdlib/math-base-special-pow": "^0.1.0",
59-
"@stdlib/math-base-special-round": "^0.1.0",
59+
"@stdlib/math-base-special-round": "^0.1.1",
6060
"@stdlib/random-base-discrete-uniform": "^0.1.0",
6161
"@stdlib/random-base-randu": "^0.1.0",
6262
"@stdlib/random-base-uniform": "^0.1.0",

test/dist/test.js

Lines changed: 4 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2020 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,62 +21,13 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var proxyquire = require( 'proxyquire' );
25-
var IS_BROWSER = require( '@stdlib/assert-is-browser' );
26-
var ssortsh = require( './../../dist' );
27-
28-
29-
// VARIABLES //
30-
31-
var opts = {
32-
'skip': IS_BROWSER
33-
};
24+
var main = require( './../../dist' );
3425

3526

3627
// TESTS //
3728

38-
tape( 'main export is a function', function test( t ) {
29+
tape( 'main export is defined', function test( t ) {
3930
t.ok( true, __filename );
40-
t.strictEqual( typeof ssortsh, 'function', 'main export is a function' );
41-
t.end();
42-
});
43-
44-
tape( 'attached to the main export is a method providing an ndarray interface', function test( t ) {
45-
t.strictEqual( typeof ssortsh.ndarray, 'function', 'method is a function' );
46-
t.end();
47-
});
48-
49-
tape( 'if a native implementation is available, the main export is the native implementation', opts, function test( t ) {
50-
var ssortsh = proxyquire( './../dist', {
51-
'@stdlib/utils-try-require': tryRequire
52-
});
53-
54-
t.strictEqual( ssortsh, mock, 'returns native implementation' );
31+
t.strictEqual( main !== void 0, true, 'main export is defined' );
5532
t.end();
56-
57-
function tryRequire() {
58-
return mock;
59-
}
60-
61-
function mock() {
62-
// Mock...
63-
}
64-
});
65-
66-
tape( 'if a native implementation is not available, the main export is a JavaScript implementation', opts, function test( t ) {
67-
var ssortsh;
68-
var main;
69-
70-
main = require( './../../dist/ssortsh.js' );
71-
72-
ssortsh = proxyquire( './../dist', {
73-
'@stdlib/utils-try-require': tryRequire
74-
});
75-
76-
t.strictEqual( ssortsh, main, 'returns JavaScript implementation' );
77-
t.end();
78-
79-
function tryRequire() {
80-
return new Error( 'Cannot find module' );
81-
}
8233
});

0 commit comments

Comments
 (0)