Skip to content

Commit e876c87

Browse files
committed
test: fix assertions
--- 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 89773d1 commit e876c87

File tree

1 file changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/math/array/tools/unary/test

1 file changed

+4
-4
lines changed

lib/node_modules/@stdlib/math/array/tools/unary/test/test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ tape( 'the function throws an error if provided a first argument which is not a
7373
function badValue( value ) {
7474
return function badValue() {
7575
var f = new Unary( value, DTYPES, DTYPES, 'same' );
76-
if ( typeof f !== 'function' ) {
76+
if ( !( f instanceof Unary ) ) {
7777
t.fail( 'unexpected return value' );
7878
}
7979
};
@@ -105,7 +105,7 @@ tape( 'the function throws an error if provided a second argument which is not a
105105
function badValue( value ) {
106106
return function badValue() {
107107
var f = new Unary( abs, value, DTYPES, 'same' );
108-
if ( typeof f !== 'function' ) {
108+
if ( !( f instanceof Unary ) ) {
109109
t.fail( 'unexpected return value' );
110110
}
111111
};
@@ -137,7 +137,7 @@ tape( 'the function throws an error if provided a third argument which is not a
137137
function badValue( value ) {
138138
return function badValue() {
139139
var f = new Unary( abs, DTYPES, value, 'same' );
140-
if ( typeof f !== 'function' ) {
140+
if ( !( f instanceof Unary ) ) {
141141
t.fail( 'unexpected return value' );
142142
}
143143
};
@@ -170,7 +170,7 @@ tape( 'the function throws an error if provided a fourth argument which is not a
170170
function badValue( value ) {
171171
return function badValue() {
172172
var f = new Unary( abs, DTYPES, DTYPES, value );
173-
if ( typeof f !== 'function' ) {
173+
if ( !( f instanceof Unary ) ) {
174174
t.fail( 'unexpected return value' );
175175
}
176176
};

0 commit comments

Comments
 (0)