Skip to content

Commit 07f7c05

Browse files
committed
test: use standardized assertion messages 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 f344466 commit 07f7c05

File tree

1,041 files changed

+3391
-3387
lines changed

Some content is hidden

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

1,041 files changed

+3391
-3387
lines changed

lib/node_modules/@stdlib/_tools/benchmarks/browser-build/test/test.validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ tape( 'the function returns `null` if all options are valid', function test( t )
201201
};
202202

203203
err = validate( options, opts );
204-
t.strictEqual( err, null, 'returns null' );
204+
t.strictEqual( err, null, 'returns expected value' );
205205

206206
t.deepEqual( options, opts, 'sets options' );
207207
t.end();
@@ -220,7 +220,7 @@ tape( 'the function ignores unrecognized/unsupported options', function test( t
220220
};
221221

222222
err = validate( options, opts );
223-
t.strictEqual( err, null, 'returns null' );
223+
t.strictEqual( err, null, 'returns expected value' );
224224

225225
t.deepEqual( options, {}, 'does not set unrecognized options' );
226226
t.end();

lib/node_modules/@stdlib/_tools/benchmarks/bundle/test/test.validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ tape( 'the function returns `null` if all options are valid', function test( t )
120120
};
121121

122122
err = validate( options, opts );
123-
t.strictEqual( err, null, 'returns null' );
123+
t.strictEqual( err, null, 'returns expected value' );
124124

125125
t.deepEqual( options, opts, 'sets options' );
126126
t.end();
@@ -139,7 +139,7 @@ tape( 'the function ignores unrecognized/unsupported options', function test( t
139139
};
140140

141141
err = validate( options, opts );
142-
t.strictEqual( err, null, 'returns null' );
142+
t.strictEqual( err, null, 'returns expected value' );
143143

144144
t.deepEqual( options, {}, 'does not set unrecognized options' );
145145
t.end();

lib/node_modules/@stdlib/_tools/benchmarks/html/test/test.validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ tape( 'the function returns `null` if all options are valid', function test( t )
120120
};
121121

122122
err = validate( options, opts );
123-
t.strictEqual( err, null, 'returns null' );
123+
t.strictEqual( err, null, 'returns expected value' );
124124

125125
t.deepEqual( options, opts, 'sets options' );
126126
t.end();
@@ -139,7 +139,7 @@ tape( 'the function ignores unrecognized/unsupported options', function test( t
139139
};
140140

141141
err = validate( options, opts );
142-
t.strictEqual( err, null, 'returns null' );
142+
t.strictEqual( err, null, 'returns expected value' );
143143

144144
t.deepEqual( options, {}, 'does not set unrecognized options' );
145145
t.end();

lib/node_modules/@stdlib/_tools/bib/citation-reference/test/test.validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ tape( 'the function returns `null` if all options are valid', function test( t )
123123
obj = {};
124124
err = validate( obj, opts );
125125

126-
t.strictEqual( err, null, 'returns null' );
126+
t.strictEqual( err, null, 'returns expected value' );
127127
t.strictEqual( obj.database, opts.database, 'sets database option' );
128128
t.strictEqual( obj.csl, opts.csl, 'sets csl option' );
129129

@@ -143,7 +143,7 @@ tape( 'the function ignores unsupported/unrecognized options', function test( t
143143
obj = {};
144144
err = validate( obj, opts );
145145

146-
t.strictEqual( err, null, 'returns null' );
146+
t.strictEqual( err, null, 'returns expected value' );
147147
t.deepEqual( obj, {}, 'does not set any options' );
148148

149149
t.end();

lib/node_modules/@stdlib/_tools/bundle/pkg-list/test/test.validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ tape( 'the function returns `null` if all options are valid', function test( t )
378378
};
379379

380380
err = validate( opts, options );
381-
t.strictEqual( err, null, 'returns null' );
381+
t.strictEqual( err, null, 'returns expected value' );
382382
t.deepEqual( opts, options, 'sets options' );
383383

384384
t.end();
@@ -396,7 +396,7 @@ tape( 'the function will ignore unrecognized options', function test( t ) {
396396
};
397397

398398
err = validate( opts, options );
399-
t.strictEqual( err, null, 'returns null' );
399+
t.strictEqual( err, null, 'returns expected value' );
400400
t.deepEqual( opts, {}, 'ignores unrecognized options' );
401401

402402
t.end();

lib/node_modules/@stdlib/_tools/changelog/generate/test/test.validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ tape( 'the function returns `null` if all options are valid', function test( t )
142142
};
143143
obj = {};
144144
err = validate( obj, opts );
145-
t.strictEqual( err, null, 'returns null' );
145+
t.strictEqual( err, null, 'returns expected value' );
146146
t.strictEqual( obj.copy, opts.copy, 'sets copy option' );
147147
t.end();
148148
});
@@ -158,7 +158,7 @@ tape( 'the function ignores unrecognized options', function test( t ) {
158158
};
159159
obj = {};
160160
err = validate( obj, opts );
161-
t.strictEqual( err, null, 'returns null' );
161+
t.strictEqual( err, null, 'returns expected value' );
162162
t.deepEqual( obj, {}, 'does not set any properties' );
163163
t.end();
164164
});

lib/node_modules/@stdlib/_tools/changelog/parse-commits/test/test.validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ tape( 'the function returns `null` if all options are valid', function test( t )
176176
obj = {};
177177
err = validate( obj, opts );
178178

179-
t.strictEqual( err, null, 'returns null' );
179+
t.strictEqual( err, null, 'returns expected value' );
180180
t.strictEqual( obj.dir, opts.dir, 'sets dir option' );
181181
t.strictEqual( obj.issueURL, opts.issueURL, 'sets issueURL option' );
182182
t.strictEqual( obj.prURL, opts.prURL, 'sets prURL option' );
@@ -197,7 +197,7 @@ tape( 'the function ignores unsupported/unrecognized options', function test( t
197197
obj = {};
198198
err = validate( obj, opts );
199199

200-
t.strictEqual( err, null, 'returns null' );
200+
t.strictEqual( err, null, 'returns expected value' );
201201
t.deepEqual( obj, {}, 'does not set any options' );
202202

203203
t.end();

0 commit comments

Comments
 (0)