Skip to content

Commit c894b66

Browse files
committed
test: use .strictEqual() instead of .equal() and fix lint errors
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 7483bef commit c894b66

File tree

284 files changed

+3682
-3681
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

284 files changed

+3682
-3681
lines changed

lib/node_modules/@stdlib/datasets/afinn-96/test/test.browser.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ tape( 'the function returns an array of 2-element arrays', function test( t ) {
3737
var list;
3838
var i;
3939
list = afinn96();
40-
t.equal( isArray( list ), true, 'returns an array' );
40+
t.strictEqual( isArray( list ), true, 'returns an array' );
4141
for ( i = 0; i < list.length; i++ ) {
42-
t.equal( isArray( list[i] ), true, 'element '+i+' is an array' );
43-
t.equal( list[i].length, 2, 'element '+i+' is a 2-element array' );
42+
t.strictEqual( isArray( list[i] ), true, 'element '+i+' is an array' );
43+
t.strictEqual( list[i].length, 2, 'element '+i+' is a 2-element array' );
4444
}
4545
t.end();
4646
});
@@ -58,9 +58,9 @@ tape( 'the function returns a deep copy', function test( t ) {
5858
v = d2[ 5 ][ 0 ];
5959
d1[ 5 ][ 0 ] = 'beep';
6060

61-
t.equal( d1[ 5 ][ 0 ], 'beep', 'expected element' );
61+
t.strictEqual( d1[ 5 ][ 0 ], 'beep', 'expected element' );
6262
t.notEqual( d1[ 5 ], d2[ 5 ], 'no shared state' );
63-
t.equal( d2[ 5 ][ 0 ], v, 'expected element' );
63+
t.strictEqual( d2[ 5 ][ 0 ], v, 'expected element' );
6464

6565
t.end();
6666
});

lib/node_modules/@stdlib/datasets/berndt-cps-wages-1985/test/test.browser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ tape( 'main export is a function', function test( t ) {
3535

3636
tape( 'the function returns an array of objects', function test( t ) {
3737
var data = dataset();
38-
t.equal( isObjectArray( data ), true, 'returns an array of objects' );
38+
t.strictEqual( isObjectArray( data ), true, 'returns an array of objects' );
3939
t.end();
4040
});
4141

@@ -52,9 +52,9 @@ tape( 'the function returns a copy', function test( t ) {
5252
v = d2[ 5 ].education;
5353
d1[ 5 ].education = 'beep';
5454

55-
t.equal( d1[ 5 ].education, 'beep', 'expected element' );
55+
t.strictEqual( d1[ 5 ].education, 'beep', 'expected element' );
5656
t.notEqual( d1[ 5 ], d2[ 5 ], 'no shared state' );
57-
t.equal( d2[ 5 ].education, v, 'expected element' );
57+
t.strictEqual( d2[ 5 ].education, v, 'expected element' );
5858

5959
t.end();
6060
});

lib/node_modules/@stdlib/datasets/berndt-cps-wages-1985/test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ tape( 'main export is a function', function test( t ) {
4343

4444
tape( 'the function returns an array of objects', opts, function test( t ) {
4545
var data = dataset();
46-
t.equal( isObjectArray( data ), true, 'returns an array of objects' );
46+
t.strictEqual( isObjectArray( data ), true, 'returns an array of objects' );
4747
t.end();
4848
});
4949

@@ -60,9 +60,9 @@ tape( 'the function returns a copy', opts, function test( t ) {
6060
v = d2[ 5 ].education;
6161
d1[ 5 ].education = 'beep';
6262

63-
t.equal( d1[ 5 ].education, 'beep', 'expected element' );
63+
t.strictEqual( d1[ 5 ].education, 'beep', 'expected element' );
6464
t.notEqual( d1[ 5 ], d2[ 5 ], 'no shared state' );
65-
t.equal( d2[ 5 ].education, v, 'expected element' );
65+
t.strictEqual( d2[ 5 ].education, v, 'expected element' );
6666

6767
t.end();
6868
});

lib/node_modules/@stdlib/datasets/cdc-nchs-us-births-1969-1988/test/test.browser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ tape( 'main export is a function', function test( t ) {
3535

3636
tape( 'the function returns an array of objects', function test( t ) {
3737
var data = dataset();
38-
t.equal( isObjectArray( data ), true, 'returns expected value' );
39-
t.equal( data.length > 0, true, 'is not empty' );
38+
t.strictEqual( isObjectArray( data ), true, 'returns expected value' );
39+
t.strictEqual( data.length > 0, true, 'is not empty' );
4040
t.end();
4141
});
4242

@@ -51,7 +51,7 @@ tape( 'the function returns a copy', function test( t ) {
5151

5252
l1[ 5 ] = 'beep';
5353

54-
t.equal( l1[ 5 ], 'beep', 'expected element' );
54+
t.strictEqual( l1[ 5 ], 'beep', 'expected element' );
5555
t.notEqual( l1[ 5 ], l2[ 5 ], 'no shared state' );
5656

5757
t.end();

lib/node_modules/@stdlib/datasets/cdc-nchs-us-births-1969-1988/test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ tape( 'main export is a function', function test( t ) {
4343

4444
tape( 'the function returns an array', opts, function test( t ) {
4545
var data = dataset();
46-
t.equal( isObjectArray( data ), true, 'returns expected value' );
47-
t.equal( data.length > 0, true, 'is not empty' );
46+
t.strictEqual( isObjectArray( data ), true, 'returns expected value' );
47+
t.strictEqual( data.length > 0, true, 'is not empty' );
4848
t.end();
4949
});
5050

@@ -59,7 +59,7 @@ tape( 'the function returns a copy', opts, function test( t ) {
5959

6060
l1[ 5 ] = 'beep';
6161

62-
t.equal( l1[ 5 ], 'beep', 'expected element' );
62+
t.strictEqual( l1[ 5 ], 'beep', 'expected element' );
6363
t.notEqual( l1[ 5 ], l2[ 5 ], 'no shared state' );
6464

6565
t.end();

lib/node_modules/@stdlib/datasets/cdc-nchs-us-births-1994-2003/test/test.browser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ tape( 'main export is a function', function test( t ) {
3535

3636
tape( 'the function returns an array of objects', function test( t ) {
3737
var data = dataset();
38-
t.equal( isObjectArray( data ), true, 'returns expected value' );
39-
t.equal( data.length > 0, true, 'is not empty' );
38+
t.strictEqual( isObjectArray( data ), true, 'returns expected value' );
39+
t.strictEqual( data.length > 0, true, 'is not empty' );
4040
t.end();
4141
});
4242

@@ -51,7 +51,7 @@ tape( 'the function returns a copy', function test( t ) {
5151

5252
l1[ 5 ] = 'beep';
5353

54-
t.equal( l1[ 5 ], 'beep', 'expected element' );
54+
t.strictEqual( l1[ 5 ], 'beep', 'expected element' );
5555
t.notEqual( l1[ 5 ], l2[ 5 ], 'no shared state' );
5656

5757
t.end();

lib/node_modules/@stdlib/datasets/cdc-nchs-us-births-1994-2003/test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ tape( 'main export is a function', function test( t ) {
4343

4444
tape( 'the function returns an array', opts, function test( t ) {
4545
var data = dataset();
46-
t.equal( isObjectArray( data ), true, 'returns expected value' );
47-
t.equal( data.length > 0, true, 'is not empty' );
46+
t.strictEqual( isObjectArray( data ), true, 'returns expected value' );
47+
t.strictEqual( data.length > 0, true, 'is not empty' );
4848
t.end();
4949
});
5050

@@ -59,7 +59,7 @@ tape( 'the function returns a copy', opts, function test( t ) {
5959

6060
l1[ 5 ] = 'beep';
6161

62-
t.equal( l1[ 5 ], 'beep', 'expected element' );
62+
t.strictEqual( l1[ 5 ], 'beep', 'expected element' );
6363
t.notEqual( l1[ 5 ], l2[ 5 ], 'no shared state' );
6464

6565
t.end();

lib/node_modules/@stdlib/datasets/cdc-nchs-us-infant-mortality-bw-1915-2013/test/test.browser.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ tape( 'main export is a function', function test( t ) {
3838
tape( 'the function returns an object containing arrays', function test( t ) {
3939
var data = dataset();
4040

41-
t.equal( isPlainObject( data ), true, 'is an object' );
41+
t.strictEqual( isPlainObject( data ), true, 'is an object' );
4242

43-
t.equal( hasOwnProp( data, 'black' ), true, 'has property' );
44-
t.equal( hasOwnProp( data, 'white' ), true, 'has property' );
43+
t.strictEqual( hasOwnProp( data, 'black' ), true, 'has property' );
44+
t.strictEqual( hasOwnProp( data, 'white' ), true, 'has property' );
4545

46-
t.equal( isArray( data.black ), true, 'returns expected value' );
47-
t.equal( data.black.length > 0, true, 'is not empty' );
46+
t.strictEqual( isArray( data.black ), true, 'returns expected value' );
47+
t.strictEqual( data.black.length > 0, true, 'is not empty' );
4848

49-
t.equal( isArray( data.white ), true, 'returns expected value' );
50-
t.equal( data.white.length > 0, true, 'is not empty' );
49+
t.strictEqual( isArray( data.white ), true, 'returns expected value' );
50+
t.strictEqual( data.white.length > 0, true, 'is not empty' );
5151
t.end();
5252
});
5353

@@ -62,7 +62,7 @@ tape( 'the function returns a copy', function test( t ) {
6262

6363
l1.black[ 5 ] = 'beep';
6464

65-
t.equal( l1.black[ 5 ], 'beep', 'expected element' );
65+
t.strictEqual( l1.black[ 5 ], 'beep', 'expected element' );
6666
t.notEqual( l1.black[ 5 ], l2.black[ 5 ], 'no shared state' );
6767

6868
t.end();

lib/node_modules/@stdlib/datasets/cdc-nchs-us-infant-mortality-bw-1915-2013/test/test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ tape( 'main export is a function', function test( t ) {
4646
tape( 'the function returns an object containing arrays', opts, function test( t ) {
4747
var data = dataset();
4848

49-
t.equal( isPlainObject( data ), true, 'is an object' );
49+
t.strictEqual( isPlainObject( data ), true, 'is an object' );
5050

51-
t.equal( hasOwnProp( data, 'black' ), true, 'has property' );
52-
t.equal( hasOwnProp( data, 'white' ), true, 'has property' );
51+
t.strictEqual( hasOwnProp( data, 'black' ), true, 'has property' );
52+
t.strictEqual( hasOwnProp( data, 'white' ), true, 'has property' );
5353

54-
t.equal( isArray( data.black ), true, 'returns expected value' );
55-
t.equal( data.black.length > 0, true, 'is not empty' );
54+
t.strictEqual( isArray( data.black ), true, 'returns expected value' );
55+
t.strictEqual( data.black.length > 0, true, 'is not empty' );
5656

57-
t.equal( isArray( data.white ), true, 'returns expected value' );
58-
t.equal( data.white.length > 0, true, 'is not empty' );
57+
t.strictEqual( isArray( data.white ), true, 'returns expected value' );
58+
t.strictEqual( data.white.length > 0, true, 'is not empty' );
5959
t.end();
6060
});
6161

@@ -70,7 +70,7 @@ tape( 'the function returns a copy', opts, function test( t ) {
7070

7171
l1.black[ 5 ] = 'beep';
7272

73-
t.equal( l1.black[ 5 ], 'beep', 'expected element' );
73+
t.strictEqual( l1.black[ 5 ], 'beep', 'expected element' );
7474
t.notEqual( l1.black[ 5 ], l2.black[ 5 ], 'no shared state' );
7575

7676
t.end();

lib/node_modules/@stdlib/datasets/cmudict/test/test.browser.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ tape( 'if not provided a `data` option, the function returns an `object`', funct
107107
var d2;
108108

109109
data = cmudict();
110-
t.equal( isObject( data ), true, 'returns an object' );
111-
t.equal( hasOwnProp( data, 'dict' ), true, 'has `dict` property' );
112-
t.equal( hasOwnProp( data, 'phones' ), true, 'has `phones` property' );
113-
t.equal( hasOwnProp( data, 'symbols' ), true, 'has `symbols` property' );
114-
t.equal( hasOwnProp( data, 'vp' ), true, 'has `vp` property' );
110+
t.strictEqual( isObject( data ), true, 'returns an object' );
111+
t.strictEqual( hasOwnProp( data, 'dict' ), true, 'has `dict` property' );
112+
t.strictEqual( hasOwnProp( data, 'phones' ), true, 'has `phones` property' );
113+
t.strictEqual( hasOwnProp( data, 'symbols' ), true, 'has `symbols` property' );
114+
t.strictEqual( hasOwnProp( data, 'vp' ), true, 'has `vp` property' );
115115

116116
// Should return a copy...
117117
d2 = cmudict();
@@ -129,11 +129,11 @@ tape( 'if not provided a `data` option, the function returns an `object` (option
129129
var d2;
130130

131131
data = cmudict( {} );
132-
t.equal( isObject( data ), true, 'returns an object' );
133-
t.equal( hasOwnProp( data, 'dict' ), true, 'has `dict` property' );
134-
t.equal( hasOwnProp( data, 'phones' ), true, 'has `phones` property' );
135-
t.equal( hasOwnProp( data, 'symbols' ), true, 'has `symbols` property' );
136-
t.equal( hasOwnProp( data, 'vp' ), true, 'has `vp` property' );
132+
t.strictEqual( isObject( data ), true, 'returns an object' );
133+
t.strictEqual( hasOwnProp( data, 'dict' ), true, 'has `dict` property' );
134+
t.strictEqual( hasOwnProp( data, 'phones' ), true, 'has `phones` property' );
135+
t.strictEqual( hasOwnProp( data, 'symbols' ), true, 'has `symbols` property' );
136+
t.strictEqual( hasOwnProp( data, 'vp' ), true, 'has `vp` property' );
137137

138138
// Should return a copy...
139139
d2 = cmudict( {} );
@@ -156,7 +156,7 @@ tape( 'if the `data` option is `dict`, the function returns an object', function
156156
};
157157
data = cmudict( opts );
158158

159-
t.equal( isObject( data ), true, 'returns an object' );
159+
t.strictEqual( isObject( data ), true, 'returns an object' );
160160

161161
// Should return a copy...
162162
d2 = cmudict( opts );
@@ -174,7 +174,7 @@ tape( 'if the `data` option is `phones`, the function returns an object', functi
174174
};
175175
data = cmudict( opts );
176176

177-
t.equal( isObject( data ), true, 'returns an object' );
177+
t.strictEqual( isObject( data ), true, 'returns an object' );
178178

179179
// Should return a copy...
180180
d2 = cmudict( opts );
@@ -192,7 +192,7 @@ tape( 'if the `data` option is `symbols`, the function returns an array of strin
192192
};
193193
data = cmudict( opts );
194194

195-
t.equal( isStringArray( data ), true, 'returns an array of strings' );
195+
t.strictEqual( isStringArray( data ), true, 'returns an array of strings' );
196196

197197
// Should return a copy...
198198
d2 = cmudict( opts );
@@ -210,7 +210,7 @@ tape( 'if the `data` option is `vp`, the function returns an object', function t
210210
};
211211
data = cmudict( opts );
212212

213-
t.equal( isObject( data ), true, 'returns an object' );
213+
t.strictEqual( isObject( data ), true, 'returns an object' );
214214

215215
// Should return a copy...
216216
d2 = cmudict( opts );

0 commit comments

Comments
 (0)