Skip to content

Commit 7add020

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 fc438e0 commit 7add020

File tree

433 files changed

+1606
-1602
lines changed

Some content is hidden

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

433 files changed

+1606
-1602
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ tape( 'the function returns rate limit info to a provided callback (error)', fun
175175
}
176176

177177
function done( error, data, info ) {
178-
t.ok( error, 'returns an error' );
178+
t.ok( error, 'returns expected value' );
179179
t.strictEqual( data, null, 'no data' );
180180
t.deepEqual( info, expected, 'deep equal' );
181181
t.end();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ tape( 'function returns rate limit info to a provided callback (error)', functio
211211
}
212212

213213
function done( error, data, info ) {
214-
t.ok( error, 'returns an error' );
214+
t.ok( error, 'returns expected value' );
215215
t.strictEqual( data, null, 'no data' );
216216

217217
t.deepEqual( info, expected, 'deep equal' );

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ tape( 'function returns rate limit info to a provided callback (error)', functio
179179
}
180180

181181
function done( error, data, info ) {
182-
t.ok( error, 'returns an error' );
182+
t.ok( error, 'returns expected value' );
183183
t.strictEqual( data, null, 'no data' );
184184

185185
t.deepEqual( info, expected, 'deep equal' );

lib/node_modules/@stdlib/_tools/github/delete-token/test/test.query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ tape( 'function returns rate limit info to a provided callback (error)', functio
149149
}
150150

151151
function done( error, info ) {
152-
t.ok( error, 'returns an error' );
152+
t.ok( error, 'returns expected value' );
153153

154154
t.deepEqual( info, expected, 'deep equal' );
155155

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ tape( 'function returns rate limit info to a provided callback (error)', functio
146146
}
147147

148148
function done( error, info ) {
149-
t.ok( error, 'returns an error' );
149+
t.ok( error, 'returns expected value' );
150150
t.deepEqual( info, expected, 'deep equal' );
151151
t.end();
152152
}

lib/node_modules/@stdlib/_tools/github/get/test/test.cache.js

Lines changed: 1 addition & 1 deletion
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 a cache of a specified size', function test( t ) {
3737
var cache = create( 10 );
38-
t.strictEqual( isArray( cache ), true, 'returns an array' );
38+
t.strictEqual( isArray( cache ), true, 'returns expected value' );
3939
t.strictEqual( cache.length, 10, 'has length 10' );
4040
t.end();
4141
});

lib/node_modules/@stdlib/_tools/github/rank-users/test/test.shuffle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ tape( 'function returns a shuffled array based on a provided sort vector', funct
6868
];
6969
actual = shuffle( d, sorted );
7070

71-
t.deepEqual( actual, expected, 'returns a shuffled array' );
71+
t.deepEqual( actual, expected, 'returns expected value' );
7272
t.end();
7373
});

lib/node_modules/@stdlib/_tools/github/set-topics/test/test.query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ tape( 'function returns rate limit info to a provided callback (error)', functio
146146
}
147147

148148
function done( error, data, info ) {
149-
t.ok( error, 'returns an error' );
149+
t.ok( error, 'returns expected value' );
150150
t.deepEqual( info, expected, 'deep equal' );
151151
t.end();
152152
}

lib/node_modules/@stdlib/_tools/github/star-repo/test/test.query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ tape( 'function returns rate limit info to a provided callback (error)', functio
146146
}
147147

148148
function done( error, info ) {
149-
t.ok( error, 'returns an error' );
149+
t.ok( error, 'returns expected value' );
150150
t.deepEqual( info, expected, 'deep equal' );
151151
t.end();
152152
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ tape( 'the function returns an error if an error is encountered when reading a f
215215
insertHeader( files, header, done );
216216

217217
function done( err ) {
218-
t.strictEqual( err instanceof Error, true, 'returns an error' );
218+
t.strictEqual( err instanceof Error, true, 'returns expected value' );
219219
t.end();
220220
}
221221
});
@@ -236,7 +236,7 @@ tape( 'the function returns an error if an error is encountered when writing a f
236236
insertHeader( files, header, done );
237237

238238
function done( err ) {
239-
t.strictEqual( err instanceof Error, true, 'returns an error' );
239+
t.strictEqual( err instanceof Error, true, 'returns expected value' );
240240
t.end();
241241
}
242242

0 commit comments

Comments
 (0)