Skip to content

Commit

Permalink
refactor: use strictEqual checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Jul 24, 2023
1 parent a81b24f commit 6c7e770
Show file tree
Hide file tree
Showing 44 changed files with 44 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var capitalize = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof capitalize, 'function', 'main export is a function' );
t.strictEqual( typeof capitalize, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var ns = require( './../lib' );

tape( 'main export is an object', function test( t ) {
t.ok( true, __filename );
t.equal( typeof ns, 'object', 'main export is an object' );
t.strictEqual( typeof ns, 'object', 'main export is an object' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/base/left-pad/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var lpad = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof lpad, 'function', 'main export is a function' );
t.strictEqual( typeof lpad, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var ltrim = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof ltrim, 'function', 'main export is a function' );
t.strictEqual( typeof ltrim, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var opts = {

tape( 'main export is a function', opts, function test( t ) {
t.ok( true, __filename );
t.equal( typeof ltrim, 'function', 'main export is a function' );
t.strictEqual( typeof ltrim, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var ltrim = require( './../lib/polyfill.js' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof ltrim, 'function', 'main export is a function' );
t.strictEqual( typeof ltrim, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var lowercase = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof lowercase, 'function', 'main export is a function' );
t.strictEqual( typeof lowercase, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/base/repeat/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var repeat = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof repeat, 'function', 'main export is a function' );
t.strictEqual( typeof repeat, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var opts = {

tape( 'main export is a function', opts, function test( t ) {
t.ok( true, __filename );
t.equal( typeof repeat, 'function', 'main export is a function' );
t.strictEqual( typeof repeat, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var repeat = require( './../lib/polyfill.js' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof repeat, 'function', 'main export is a function' );
t.strictEqual( typeof repeat, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/base/replace/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var replace = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof replace, 'function', 'main export is a function' );
t.strictEqual( typeof replace, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var rpad = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof rpad, 'function', 'main export is a function' );
t.strictEqual( typeof rpad, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var rtrim = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof rtrim, 'function', 'main export is a function' );
t.strictEqual( typeof rtrim, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var opts = {

tape( 'main export is a function', opts, function test( t ) {
t.ok( true, __filename );
t.equal( typeof rtrim, 'function', 'main export is a function' );
t.strictEqual( typeof rtrim, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var rtrim = require( './../lib/polyfill.js' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof rtrim, 'function', 'main export is a function' );
t.strictEqual( typeof rtrim, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/base/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var ns = require( './../lib' );

tape( 'main export is an object', function test( t ) {
t.ok( true, __filename );
t.equal( typeof ns, 'object', 'main export is an object' );
t.strictEqual( typeof ns, 'object', 'main export is an object' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/base/trim/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var trim = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof trim, 'function', 'main export is a function' );
t.strictEqual( typeof trim, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var opts = {

tape( 'main export is a function', opts, function test( t ) {
t.ok( true, __filename );
t.equal( typeof trim, 'function', 'main export is a function' );
t.strictEqual( typeof trim, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var trim = require( './../lib/polyfill.js' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof trim, 'function', 'main export is a function' );
t.strictEqual( typeof trim, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var uncapitalize = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof uncapitalize, 'function', 'main export is a function' );
t.strictEqual( typeof uncapitalize, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var uppercase = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof uppercase, 'function', 'main export is a function' );
t.strictEqual( typeof uppercase, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/capitalize/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var capitalize = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof capitalize, 'function', 'main export is a function' );
t.strictEqual( typeof capitalize, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/left-pad/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var lpad = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof lpad, 'function', 'main export is a function' );
t.strictEqual( typeof lpad, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/left-trim/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var ltrim = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof ltrim, 'function', 'main export is a function' );
t.strictEqual( typeof ltrim, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/lowercase/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var lowercase = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof lowercase, 'function', 'main export is a function' );
t.strictEqual( typeof lowercase, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/num2words/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var num2words = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof num2words, 'function', 'main export is a function' );
t.strictEqual( typeof num2words, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var validate = require( './../lib/validate.js' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof validate, 'function', 'main export is a function' );
t.strictEqual( typeof validate, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/pad/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var pad = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof pad, 'function', 'main export is a function' );
t.strictEqual( typeof pad, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/pad/test/test.validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var validate = require( './../lib/validate.js' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof validate, 'function', 'main export is a function' );
t.strictEqual( typeof validate, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var removePunctuation = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof removePunctuation, 'function', 'main export is a function' );
t.strictEqual( typeof removePunctuation, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var removeUTF8BOM = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof removeUTF8BOM, 'function', 'main export is a function' );
t.strictEqual( typeof removeUTF8BOM, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/remove-words/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var removeWords = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof removeWords, 'function', 'main export is a function' );
t.strictEqual( typeof removeWords, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/repeat/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var repeat = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof repeat, 'function', 'main export is a function' );
t.strictEqual( typeof repeat, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/replace/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var replace = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof replace, 'function', 'main export is a function' );
t.strictEqual( typeof replace, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/right-pad/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var rpad = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof rpad, 'function', 'main export is a function' );
t.strictEqual( typeof rpad, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/right-trim/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var rtrim = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof rtrim, 'function', 'main export is a function' );
t.strictEqual( typeof rtrim, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var string = require( './../lib' );

tape( 'main export is an object', function test( t ) {
t.ok( true, __filename );
t.equal( typeof string, 'object', 'main export is an object' );
t.strictEqual( typeof string, 'object', 'main export is an object' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var graphemeClusters2iteratorRight = require( './../lib' ); // eslint-disable-li

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof graphemeClusters2iteratorRight, 'function', 'main export is a function' );
t.strictEqual( typeof graphemeClusters2iteratorRight, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var graphemeClusters2iterator = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof graphemeClusters2iterator, 'function', 'main export is a function' );
t.strictEqual( typeof graphemeClusters2iterator, 'function', 'main export is a function' );
t.end();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var grapheme = require( './../lib' );

tape( 'main export is an object', function test( t ) {
t.ok( true, __filename );
t.equal( typeof grapheme, 'object', 'main export is an object' );
t.strictEqual( typeof grapheme, 'object', 'main export is an object' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/tools/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var ns = require( './../lib' );

tape( 'main export is an object', function test( t ) {
t.ok( true, __filename );
t.equal( typeof ns, 'object', 'main export is an object' );
t.strictEqual( typeof ns, 'object', 'main export is an object' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/trim/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var trim = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof trim, 'function', 'main export is a function' );
t.strictEqual( typeof trim, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/uncapitalize/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var uncapitalize = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof uncapitalize, 'function', 'main export is a function' );
t.strictEqual( typeof uncapitalize, 'function', 'main export is a function' );
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/uppercase/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var uppercase = require( './../lib' );

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof uppercase, 'function', 'main export is a function' );
t.strictEqual( typeof uppercase, 'function', 'main export is a function' );
t.end();
});

Expand Down

0 comments on commit 6c7e770

Please sign in to comment.