Skip to content

Commit f53c9e7

Browse files
committed
Auto-generated commit
1 parent e17a2cf commit f53c9e7

3 files changed

Lines changed: 7 additions & 65 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
147147
[npm-image]: http://img.shields.io/npm/v/@stdlib/assert-is-array.svg
148148
[npm-url]: https://npmjs.org/package/@stdlib/assert-is-array
149149

150-
[test-image]: https://github.com/stdlib-js/assert-is-array/actions/workflows/test.yml/badge.svg?branch=v0.1.1
151-
[test-url]: https://github.com/stdlib-js/assert-is-array/actions/workflows/test.yml?query=branch:v0.1.1
150+
[test-image]: https://github.com/stdlib-js/assert-is-array/actions/workflows/test.yml/badge.svg?branch=main
151+
[test-url]: https://github.com/stdlib-js/assert-is-array/actions/workflows/test.yml?query=branch:main
152152

153153
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/assert-is-array/main.svg
154154
[coverage-url]: https://codecov.io/github/stdlib-js/assert-is-array?branch=main

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@stdlib/utils-native-class": "^0.1.1"
4141
},
4242
"devDependencies": {
43-
"@stdlib/assert-is-boolean": "^0.1.0",
43+
"@stdlib/assert-is-boolean": "^0.1.1",
4444
"@stdlib/bench": "^0.1.0",
4545
"proxyquire": "^2.0.0",
4646
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",

test/dist/test.js

Lines changed: 4 additions & 62 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,71 +21,13 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var proxyquire = require( 'proxyquire' );
25-
var isArray = 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 isArray, 'function', 'main export is a function' );
33-
t.end();
34-
});
35-
36-
tape( 'the function returns `true` if provided an array', function test( t ) {
37-
t.equal( isArray( [] ), true, 'returns true' );
38-
t.equal( isArray( new Array( 10 ) ), true, 'returns true' );
39-
t.end();
40-
});
41-
42-
tape( 'the function returns `false` if not provided an array', function test( t ) {
43-
var values;
44-
var i;
45-
46-
values = [
47-
5,
48-
{},
49-
true,
50-
'5',
51-
null,
52-
NaN,
53-
function noop() {},
54-
void 0
55-
];
56-
57-
for ( i = 0; i < values.length; i++ ) {
58-
t.equal( isArray( values[i] ), false, 'returns false when provided ' + values[i] );
59-
}
60-
t.end();
61-
});
62-
63-
tape( 'the function includes a polyfill for `Array.isArray`', function test( t ) {
64-
var isArray;
65-
var values;
66-
var fcn;
67-
var i;
68-
69-
fcn = Array.isArray;
70-
Array.isArray = void 0;
71-
isArray = proxyquire( './../dist/main.js', {} );
72-
73-
values = [
74-
5,
75-
{},
76-
true,
77-
'5',
78-
null,
79-
NaN,
80-
function noop() {},
81-
void 0
82-
];
83-
84-
for ( i = 0; i < values.length; i++ ) {
85-
t.equal( isArray( values[i] ), false, 'returns false when provided '+values[i] );
86-
}
87-
t.equal( isArray( [] ), true, 'returns true when provided an array' );
88-
89-
Array.isArray = fcn;
31+
t.strictEqual( main !== void 0, true, 'main export is defined' );
9032
t.end();
9133
});

0 commit comments

Comments
 (0)