Skip to content

Commit 11581aa

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 07f7c05 commit 11581aa

File tree

753 files changed

+4439
-4459
lines changed

Some content is hidden

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

753 files changed

+4439
-4459
lines changed

lib/node_modules/@stdlib/_tools/github/create-issue/test/test.data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ tape( 'main export is a function', function test( t ) {
4242
});
4343

4444
tape( 'the function returns a string', function test( t ) {
45-
t.strictEqual( typeof data( 'Big bug', setup() ), 'string', 'returns a string' );
45+
t.strictEqual( typeof data( 'Big bug', setup() ), 'string', 'returns expected value' );
4646
t.end();
4747
});
4848

lib/node_modules/@stdlib/_tools/github/create-repo/test/test.data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ tape( 'main export is a function', function test( t ) {
4949
});
5050

5151
tape( 'the function returns a string', function test( t ) {
52-
t.strictEqual( typeof data( 'sum_series', setup() ), 'string', 'returns a string' );
52+
t.strictEqual( typeof data( 'sum_series', setup() ), 'string', 'returns expected value' );
5353
t.end();
5454
});
5555

lib/node_modules/@stdlib/_tools/github/create-token/test/test.data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ tape( 'main export is a function', function test( t ) {
4343
});
4444

4545
tape( 'the function returns a string', function test( t ) {
46-
t.strictEqual( typeof data( setup() ), 'string', 'returns a string' );
46+
t.strictEqual( typeof data( setup() ), 'string', 'returns expected value' );
4747
t.end();
4848
});
4949

lib/node_modules/@stdlib/_tools/github/dispatch-workflow/test/test.data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ tape( 'main export is a function', function test( t ) {
4242
});
4343

4444
tape( 'the function returns a string', function test( t ) {
45-
t.strictEqual( typeof data( setup() ), 'string', 'returns a string' );
45+
t.strictEqual( typeof data( setup() ), 'string', 'returns expected value' );
4646
t.end();
4747
});
4848

lib/node_modules/@stdlib/_tools/licenses/insert-header/test/test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ tape( 'the function inserts a license header into a source code string', functio
115115

116116
actual = insertHeader( src, HEADER );
117117

118-
t.strictEqual( isString( actual ), true, 'returns a string' );
118+
t.strictEqual( isString( actual ), true, 'returns expected value' );
119119
t.strictEqual( actual, expected, 'returns expected value' );
120120
t.end();
121121
});
@@ -140,7 +140,7 @@ tape( 'the function inserts a license header into a source code string (empty he
140140

141141
actual = insertHeader( src, '' );
142142

143-
t.strictEqual( isString( actual ), true, 'returns a string' );
143+
t.strictEqual( isString( actual ), true, 'returns expected value' );
144144
t.strictEqual( actual, expected, 'returns expected value' );
145145
t.end();
146146
});
@@ -166,7 +166,7 @@ tape( 'the function inserts a license header into a source code string (buffer h
166166

167167
actual = insertHeader( src, string2buffer( HEADER ) );
168168

169-
t.strictEqual( isString( actual ), true, 'returns a string' );
169+
t.strictEqual( isString( actual ), true, 'returns expected value' );
170170
t.strictEqual( actual, expected, 'returns expected value' );
171171
t.end();
172172
});
@@ -192,7 +192,7 @@ tape( 'the function inserts a license header into a source code buffer', functio
192192

193193
actual = insertHeader( src, HEADER );
194194

195-
t.strictEqual( isBuffer( actual ), true, 'returns a buffer' );
195+
t.strictEqual( isBuffer( actual ), true, 'returns expected value' );
196196
t.strictEqual( actual.toString(), expected, 'returns expected value' );
197197
t.end();
198198
});
@@ -218,7 +218,7 @@ tape( 'the function inserts a license header into a source code buffer (buffer h
218218

219219
actual = insertHeader( src, string2buffer( HEADER ) );
220220

221-
t.strictEqual( isBuffer( actual ), true, 'returns a buffer' );
221+
t.strictEqual( isBuffer( actual ), true, 'returns expected value' );
222222
t.strictEqual( actual.toString(), expected, 'returns expected value' );
223223
t.end();
224224
});

lib/node_modules/@stdlib/_tools/licenses/remove-header/test/test.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ tape( 'the function removes a license header from a source code string', functio
114114

115115
actual = removeHeader( src, HEADER+'\n' );
116116

117-
t.strictEqual( isString( actual ), true, 'returns a string' );
117+
t.strictEqual( isString( actual ), true, 'returns expected value' );
118118
t.strictEqual( actual, expected, 'returns expected value' );
119119
t.end();
120120
});
@@ -139,7 +139,7 @@ tape( 'the function removes a license header from a source code string (empty he
139139

140140
actual = removeHeader( src, '' );
141141

142-
t.strictEqual( isString( actual ), true, 'returns a string' );
142+
t.strictEqual( isString( actual ), true, 'returns expected value' );
143143
t.strictEqual( actual, expected, 'returns expected value' );
144144
t.end();
145145
});
@@ -164,7 +164,7 @@ tape( 'the function removes a license header from a source code string (buffer h
164164

165165
actual = removeHeader( src, string2buffer( HEADER+'\n' ) );
166166

167-
t.strictEqual( isString( actual ), true, 'returns a string' );
167+
t.strictEqual( isString( actual ), true, 'returns expected value' );
168168
t.strictEqual( actual, expected, 'returns expected value' );
169169
t.end();
170170
});
@@ -189,7 +189,7 @@ tape( 'the function removes a license header from a source code string (empty bu
189189

190190
actual = removeHeader( src, string2buffer( '' ) );
191191

192-
t.strictEqual( isString( actual ), true, 'returns a string' );
192+
t.strictEqual( isString( actual ), true, 'returns expected value' );
193193
t.strictEqual( actual, expected, 'returns expected value' );
194194
t.end();
195195
});
@@ -214,7 +214,7 @@ tape( 'the function removes a license header from a source code string (regular
214214

215215
actual = removeHeader( src, /\/\/ @license Apache-2\.0\n\n/ );
216216

217-
t.strictEqual( isString( actual ), true, 'returns a string' );
217+
t.strictEqual( isString( actual ), true, 'returns expected value' );
218218
t.strictEqual( actual, expected, 'returns expected value' );
219219
t.end();
220220
});
@@ -241,7 +241,7 @@ tape( 'the function removes a multi-line license header from a source code strin
241241

242242
actual = removeHeader( src, /\/\*\*\n\* @license Apache-2\.0\n\*\/\n\n/ );
243243

244-
t.strictEqual( isString( actual ), true, 'returns a string' );
244+
t.strictEqual( isString( actual ), true, 'returns expected value' );
245245
t.strictEqual( actual, expected, 'returns expected value' );
246246
t.end();
247247
});
@@ -266,7 +266,7 @@ tape( 'the function removes a license header from a source code buffer', functio
266266

267267
actual = removeHeader( src, HEADER+'\n' );
268268

269-
t.strictEqual( isBuffer( actual ), true, 'returns a buffer' );
269+
t.strictEqual( isBuffer( actual ), true, 'returns expected value' );
270270
t.strictEqual( actual.toString(), expected, 'returns expected value' );
271271
t.end();
272272
});
@@ -291,7 +291,7 @@ tape( 'the function removes a license header from a source code buffer (empty he
291291

292292
actual = removeHeader( src, '' );
293293

294-
t.strictEqual( isBuffer( actual ), true, 'returns a buffer' );
294+
t.strictEqual( isBuffer( actual ), true, 'returns expected value' );
295295
t.strictEqual( actual.toString(), expected, 'returns expected value' );
296296
t.end();
297297
});
@@ -316,7 +316,7 @@ tape( 'the function removes a license header from a source code buffer (buffer h
316316

317317
actual = removeHeader( src, string2buffer( HEADER+'\n' ) );
318318

319-
t.strictEqual( isBuffer( actual ), true, 'returns a buffer' );
319+
t.strictEqual( isBuffer( actual ), true, 'returns expected value' );
320320
t.strictEqual( actual.toString(), expected, 'returns expected value' );
321321
t.end();
322322
});
@@ -341,7 +341,7 @@ tape( 'the function removes a license header from a source code buffer (regular
341341

342342
actual = removeHeader( src, /\/\/ @license Apache-2\.0\n\n/ );
343343

344-
t.strictEqual( isBuffer( actual ), true, 'returns a buffer' );
344+
t.strictEqual( isBuffer( actual ), true, 'returns expected value' );
345345
t.strictEqual( actual.toString(), expected, 'returns expected value' );
346346
t.end();
347347
});

lib/node_modules/@stdlib/_tools/licenses/update-header/test/test.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ tape( 'the function updates a license header in a source code string', function
143143

144144
actual = updateHeader( src, OLD_HEADER, NEW_HEADER );
145145

146-
t.strictEqual( isString( actual ), true, 'returns a string' );
146+
t.strictEqual( isString( actual ), true, 'returns expected value' );
147147
t.strictEqual( actual, expected, 'returns expected value' );
148148
t.end();
149149
});
@@ -168,7 +168,7 @@ tape( 'the function updates a license header in a source code string (empty new
168168

169169
actual = updateHeader( src, OLD_HEADER+'\n', '' );
170170

171-
t.strictEqual( isString( actual ), true, 'returns a string' );
171+
t.strictEqual( isString( actual ), true, 'returns expected value' );
172172
t.strictEqual( actual, expected, 'returns expected value' );
173173
t.end();
174174
});
@@ -193,7 +193,7 @@ tape( 'the function updates a license header in a source code string (empty old
193193

194194
actual = updateHeader( src, '', NEW_HEADER+'\n' );
195195

196-
t.strictEqual( isString( actual ), true, 'returns a string' );
196+
t.strictEqual( isString( actual ), true, 'returns expected value' );
197197
t.strictEqual( actual, expected, 'returns expected value' );
198198
t.end();
199199
});
@@ -216,7 +216,7 @@ tape( 'the function updates a license header in a source code string (empty head
216216

217217
actual = updateHeader( src, '', '' );
218218

219-
t.strictEqual( isString( actual ), true, 'returns a string' );
219+
t.strictEqual( isString( actual ), true, 'returns expected value' );
220220
t.strictEqual( actual, expected, 'returns expected value' );
221221
t.end();
222222
});
@@ -242,7 +242,7 @@ tape( 'the function updates a license header in a source code string (buffer old
242242

243243
actual = updateHeader( src, string2buffer( OLD_HEADER ), NEW_HEADER );
244244

245-
t.strictEqual( isString( actual ), true, 'returns a string' );
245+
t.strictEqual( isString( actual ), true, 'returns expected value' );
246246
t.strictEqual( actual, expected, 'returns expected value' );
247247
t.end();
248248
});
@@ -268,7 +268,7 @@ tape( 'the function updates a license header in a source code string (buffer new
268268

269269
actual = updateHeader( src, OLD_HEADER, string2buffer( NEW_HEADER ) );
270270

271-
t.strictEqual( isString( actual ), true, 'returns a string' );
271+
t.strictEqual( isString( actual ), true, 'returns expected value' );
272272
t.strictEqual( actual, expected, 'returns expected value' );
273273
t.end();
274274
});
@@ -294,7 +294,7 @@ tape( 'the function updates a license header in a source code string (regular ex
294294

295295
actual = updateHeader( src, /\/\/ @license MIT\n\n/, NEW_HEADER+'\n' );
296296

297-
t.strictEqual( isString( actual ), true, 'returns a string' );
297+
t.strictEqual( isString( actual ), true, 'returns expected value' );
298298
t.strictEqual( actual, expected, 'returns expected value' );
299299
t.end();
300300
});
@@ -322,7 +322,7 @@ tape( 'the function updates a multi-line license header in a source code string
322322

323323
actual = updateHeader( src, /\/\*\*\n\* @license Apache-2\.0\n\*\/\n\n/, NEW_HEADER );
324324

325-
t.strictEqual( isString( actual ), true, 'returns a string' );
325+
t.strictEqual( isString( actual ), true, 'returns expected value' );
326326
t.strictEqual( actual, expected, 'returns expected value' );
327327
t.end();
328328
});
@@ -348,7 +348,7 @@ tape( 'the function updates a license header in a source code buffer', function
348348

349349
actual = updateHeader( src, OLD_HEADER, NEW_HEADER );
350350

351-
t.strictEqual( isBuffer( actual ), true, 'returns a buffer' );
351+
t.strictEqual( isBuffer( actual ), true, 'returns expected value' );
352352
t.strictEqual( actual.toString(), expected, 'returns expected value' );
353353
t.end();
354354
});
@@ -374,7 +374,7 @@ tape( 'the function updates a license header in a source code buffer (buffer old
374374

375375
actual = updateHeader( src, string2buffer( OLD_HEADER ), NEW_HEADER );
376376

377-
t.strictEqual( isBuffer( actual ), true, 'returns a buffer' );
377+
t.strictEqual( isBuffer( actual ), true, 'returns expected value' );
378378
t.strictEqual( actual.toString(), expected, 'returns expected value' );
379379
t.end();
380380
});
@@ -400,7 +400,7 @@ tape( 'the function updates a license header in a source code buffer (regular ex
400400

401401
actual = updateHeader( src, /\/\/ @license MIT\n/, NEW_HEADER );
402402

403-
t.strictEqual( isBuffer( actual ), true, 'returns a buffer' );
403+
t.strictEqual( isBuffer( actual ), true, 'returns expected value' );
404404
t.strictEqual( actual.toString(), expected, 'returns expected value' );
405405
t.end();
406406
});

lib/node_modules/@stdlib/_tools/markdown/img-svg-equation/test/test.escape_html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ tape( 'main export is a function', function test( t ) {
3434

3535
tape( 'the function returns a string', function test( t ) {
3636
var str = escapeHTML( 'beep' );
37-
t.strictEqual( typeof str, 'string', 'returns a string' );
37+
t.strictEqual( typeof str, 'string', 'returns expected value' );
3838
t.end();
3939
});
4040

lib/node_modules/@stdlib/_tools/markdown/img-svg-equation/test/test.render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ tape( 'main export is a function', function test( t ) {
4848

4949
tape( 'the function returns a string', function test( t ) {
5050
var str = render( setup() );
51-
t.strictEqual( typeof str, 'string', 'returns a string' );
51+
t.strictEqual( typeof str, 'string', 'returns expected value' );
5252
t.end();
5353
});
5454

lib/node_modules/@stdlib/_tools/markdown/inline-svg-equation/test/test.escape_html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ tape( 'main export is a function', function test( t ) {
3434

3535
tape( 'the function returns a string', function test( t ) {
3636
var str = escapeHTML( 'beep' );
37-
t.strictEqual( typeof str, 'string', 'returns a string' );
37+
t.strictEqual( typeof str, 'string', 'returns expected value' );
3838
t.end();
3939
});
4040

0 commit comments

Comments
 (0)