Skip to content

Commit 0a91445

Browse files
committed
Rename variable and use strict equality
1 parent 66c2a01 commit 0a91445

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

lib/node_modules/@stdlib/fs/read-json/test/test.async.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
var tape = require( 'tape' );
66
var join = require( 'path' ).join;
7-
var isBrowser = require( '@stdlib/assert/is-browser' );
7+
var IS_BROWSER = require( '@stdlib/assert/is-browser' );
88
var noop = require( '@stdlib/utils/noop' );
99
var readJSON = require( './../lib/async.js' );
1010

@@ -13,7 +13,7 @@ var readJSON = require( './../lib/async.js' );
1313

1414
// Don't run tests in the browser...for now...
1515
var opts = {
16-
'skip': isBrowser
16+
'skip': IS_BROWSER
1717
};
1818

1919

@@ -28,7 +28,7 @@ var bomJSON = join( __dirname, 'fixtures', 'bom.json.txt' );
2828

2929
tape( 'main export is a function', function test( t ) {
3030
t.ok( true, __filename );
31-
t.equal( typeof readJSON, 'function', 'main export is a function' );
31+
t.strictEqual( typeof readJSON, 'function', 'main export is a function' );
3232
t.end();
3333
});
3434

@@ -40,8 +40,9 @@ tape( 'the function throws an error if provided an options argument which is nei
4040
5,
4141
NaN,
4242
true,
43+
false,
4344
null,
44-
undefined,
45+
void 0,
4546
[],
4647
function noop() {}
4748
];
@@ -67,8 +68,9 @@ tape( 'the function throws an error if provided a callback argument which is not
6768
5,
6869
NaN,
6970
true,
71+
false,
7072
null,
71-
undefined,
73+
void 0,
7274
[],
7375
{}
7476
];
@@ -94,8 +96,9 @@ tape( 'the function throws an error if provided a callback argument which is not
9496
5,
9597
NaN,
9698
true,
99+
false,
97100
null,
98-
undefined,
101+
void 0,
99102
[],
100103
{}
101104
];
@@ -121,8 +124,9 @@ tape( 'the function throws an error if provided a callback argument which is not
121124
5,
122125
NaN,
123126
true,
127+
false,
124128
null,
125-
undefined,
129+
void 0,
126130
[],
127131
{}
128132
];

0 commit comments

Comments
 (0)