Skip to content

Commit f31d6d7

Browse files
committed
Auto-generated commit
1 parent d011402 commit f31d6d7

File tree

3 files changed

+10
-46
lines changed

3 files changed

+10
-46
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
307307
[npm-image]: http://img.shields.io/npm/v/@stdlib/utils-native-class.svg
308308
[npm-url]: https://npmjs.org/package/@stdlib/utils-native-class
309309

310-
[test-image]: https://github.com/stdlib-js/utils-native-class/actions/workflows/test.yml/badge.svg?branch=v0.1.1
311-
[test-url]: https://github.com/stdlib-js/utils-native-class/actions/workflows/test.yml?query=branch:v0.1.1
310+
[test-image]: https://github.com/stdlib-js/utils-native-class/actions/workflows/test.yml/badge.svg?branch=main
311+
[test-url]: https://github.com/stdlib-js/utils-native-class/actions/workflows/test.yml?query=branch:main
312312

313313
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-native-class/main.svg
314314
[coverage-url]: https://codecov.io/github/stdlib-js/utils-native-class?branch=main

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@
5454
"@stdlib/array-uint8c": "^0.1.0",
5555
"@stdlib/assert-has-map-support": "^0.1.0",
5656
"@stdlib/assert-has-set-support": "^0.1.1",
57-
"@stdlib/assert-has-symbol-support": "^0.1.0",
57+
"@stdlib/assert-has-symbol-support": "^0.1.1",
5858
"@stdlib/assert-has-weakmap-support": "^0.1.1",
5959
"@stdlib/assert-has-weakset-support": "^0.1.1",
60-
"@stdlib/assert-is-string": "^0.1.0",
60+
"@stdlib/assert-is-string": "^0.1.1",
6161
"@stdlib/bench": "^0.1.0",
62-
"@stdlib/boolean-ctor": "^0.1.0",
63-
"@stdlib/number-ctor": "^0.1.0",
62+
"@stdlib/boolean-ctor": "^0.1.1",
63+
"@stdlib/number-ctor": "^0.1.1",
6464
"@stdlib/utils-define-read-only-property": "^0.1.1",
6565
"proxyquire": "^2.0.0",
6666
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",

test/dist/test.js

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

2323
var tape = require( 'tape' );
24-
var proxyquire = require( 'proxyquire' );
25-
var nativeClass = require( './../../dist' );
24+
var main = require( './../../dist' );
2625

2726

2827
// TESTS //
2928

30-
tape( 'main export is a function', function test( t ) {
29+
tape( 'main export is defined', function test( t ) {
3130
t.ok( true, __filename );
32-
t.strictEqual( typeof nativeClass, 'function', 'export is a function' );
31+
t.strictEqual( main !== void 0, true, 'main export is defined' );
3332
t.end();
3433
});
35-
36-
tape( 'if an environment has `Symbol.toStringTag` support, the main export is a function which attempts to uncover the native `Symbol.toStringTag`', function test( t ) {
37-
var nativeClass = proxyquire( './../dist/index.js', {
38-
'@stdlib/assert-has-tostringtag-support': hasSupport,
39-
'./polyfill.js': polyfill
40-
});
41-
t.strictEqual( nativeClass, polyfill, 'exports expected function' );
42-
t.end();
43-
44-
function hasSupport() {
45-
return true;
46-
}
47-
48-
function polyfill() {
49-
// Polyfill...
50-
}
51-
});
52-
53-
tape( 'if an environment does not have `Symbol.toStringTag` support, the main export is a function which returns the value of the internal `[[Class]]` property', function test( t ) {
54-
var nativeClass = proxyquire( './../dist/index.js', {
55-
'@stdlib/assert-has-tostringtag-support': hasSupport,
56-
'./main.js': foo
57-
});
58-
59-
t.strictEqual( nativeClass, foo, 'exports expected function' );
60-
t.end();
61-
62-
function hasSupport() {
63-
return false;
64-
}
65-
66-
function foo() {
67-
// Native class...
68-
}
69-
});

0 commit comments

Comments
 (0)