Skip to content

Commit 1163966

Browse files
committed
test: fix error checks
--- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent ab66980 commit 1163966

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/ndarray/push/test/test.assign.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ tape( 'the function throws an error if provided an output argument which is an n
151151
});
152152

153153
tape( 'the function throws an error if provided insufficient arguments', function test( t ) {
154-
t.throws( badValue, TypeError, 'throws an error' );
154+
t.throws( badValue, Error, 'throws an error' );
155155
t.end();
156156

157157
function badValue() {

lib/node_modules/@stdlib/ndarray/push/test/test.main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ tape( 'the function throws an error if provided an ndarray with more than one di
9494
});
9595

9696
tape( 'the function throws an error if provided insufficient arguments', function test( t ) {
97-
t.throws( badValue, TypeError, 'throws an error' );
97+
t.throws( badValue, Error, 'throws an error' );
9898
t.end();
9999

100100
function badValue() {

0 commit comments

Comments
 (0)