Skip to content

Commit a724765

Browse files
committed
Replace undefined with void 0 in tests
1 parent d859419 commit a724765

File tree

26 files changed

+44
-44
lines changed

26 files changed

+44
-44
lines changed

lib/node_modules/@stdlib/assert/instance-of/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ tape( 'the function returns `false` if provided a test value which is not an ins
129129
true,
130130
false,
131131
null,
132-
undefined
132+
void 0
133133
];
134134
for ( i = 0; i < values.length; i++ ) {
135135
bool = instanceOf( values[i], Object );

lib/node_modules/@stdlib/assert/is-absolute-http-uri/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ tape( 'the function returns `false` if provided a value other than a string prim
8484
5,
8585
NaN,
8686
null,
87-
undefined,
87+
void 0,
8888
true,
8989
[],
9090
{},

lib/node_modules/@stdlib/assert/is-absolute-uri/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ tape( 'the function returns `false` if provided a value other than a string prim
8484
5,
8585
NaN,
8686
null,
87-
undefined,
87+
void 0,
8888
true,
8989
[],
9090
{},

lib/node_modules/@stdlib/assert/is-array/test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ tape( 'the function returns `false` if not provided an array', function test( t
5151
null,
5252
NaN,
5353
function noop() {},
54-
undefined
54+
void 0
5555
];
5656

5757
for ( i = 0; i < values.length; i++ ) {
@@ -67,7 +67,7 @@ tape( 'the function includes a polyfill for `Array.isArray`', function test( t )
6767
var i;
6868

6969
fcn = Array.isArray;
70-
Array.isArray = undefined;
70+
Array.isArray = void 0;
7171
isArray = proxyquire( './../lib/main.js', {} );
7272

7373
values = [
@@ -78,7 +78,7 @@ tape( 'the function includes a polyfill for `Array.isArray`', function test( t )
7878
null,
7979
NaN,
8080
function noop() {},
81-
undefined
81+
void 0
8282
];
8383

8484
for ( i = 0; i < values.length; i++ ) {

lib/node_modules/@stdlib/assert/is-null-array/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ tape( 'the function tests for an array-like object having only `null` values', f
4848
arr = [ null, 3, null ];
4949
t.equal( isNullArray( arr ), false, 'returns false' );
5050

51-
arr = [ null, undefined, false, null ];
51+
arr = [ null, void 0, false, null ];
5252
t.equal( isNullArray( arr ), false, 'returns false' );
5353

5454
t.end();

lib/node_modules/@stdlib/assert/is-null/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ tape( 'the function returns `false` if not provided `null`', function test( t )
4949
false,
5050
{},
5151
NaN,
52-
undefined
52+
void 0
5353
];
5454

5555
for ( i = 0; i < values.length; i++ ) {

lib/node_modules/@stdlib/assert/is-prototype-of/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ tape( 'the function throws an error if a prototype argument which is neither an
4545
true,
4646
false,
4747
null,
48-
undefined
48+
void 0
4949
];
5050
for ( i = 0; i < values.length; i++ ) {
5151
t.throws( badValue( values[i] ), TypeError, 'throws a type error when provided '+values[i] );

lib/node_modules/@stdlib/assert/is-regexp-string/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ tape( 'the function returns `false` if not provided a regular expression string'
5555
null,
5656
NaN,
5757
{},
58-
undefined
58+
void 0
5959
];
6060
for ( i = 0; i < values.length; i++ ) {
6161
t.equal( isRegExpString( values[i] ), false, 'returns false when provided '+values[i] );

lib/node_modules/@stdlib/assert/is-relative-uri/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ tape( 'the function returns `false` if not provided a string primitive', functio
4040
5,
4141
NaN,
4242
null,
43-
undefined,
43+
void 0,
4444
true,
4545
[],
4646
{}

lib/node_modules/@stdlib/regexp/unc-path/test/test.main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ tape( 'the returned regular expression captures a UNC path path name', function
148148
'\\foo\\bar',
149149
'\\foo',
150150
'',
151-
undefined
151+
void 0
152152
];
153153

154154
for ( i = 0; i < values.length; i++ ) {
@@ -184,7 +184,7 @@ tape( 'the returned regular expression captures a UNC path file name', function
184184
'baz',
185185
'bar',
186186
'foo',
187-
undefined
187+
void 0
188188
];
189189

190190
for ( i = 0; i < values.length; i++ ) {
@@ -220,7 +220,7 @@ tape( 'the returned regular expression captures a UNC path stream name', functio
220220
void 0,
221221
void 0,
222222
void 0,
223-
undefined
223+
void 0
224224
];
225225

226226
for ( i = 0; i < values.length; i++ ) {
@@ -256,7 +256,7 @@ tape( 'the returned regular expression captures a UNC path stream type', functio
256256
void 0,
257257
void 0,
258258
void 0,
259-
undefined
259+
void 0
260260
];
261261

262262
for ( i = 0; i < values.length; i++ ) {

0 commit comments

Comments
 (0)