Skip to content

Commit 24fe5a1

Browse files
committed
test: explicitly serialize return value to a string
--- 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 a73a430 commit 24fe5a1

File tree

2 files changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/ndarray/base
    • min-signed-integer-dtype/test
    • min-unsigned-integer-dtype/test

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/ndarray/base/min-signed-integer-dtype/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ tape( 'the function returns the minimum ndarray data type for storing a provided
6969
];
7070
for ( i = 0; i < values.length; i++ ) {
7171
actual = minSignedIntegerDataType( values[i] );
72-
t.strictEqual( actual, expected[ i ], 'returns expected value when provided '+values[i] );
72+
t.strictEqual( String( actual ), expected[ i ], 'returns expected value when provided '+values[i] );
7373
}
7474
t.end();
7575
});

lib/node_modules/@stdlib/ndarray/base/min-unsigned-integer-dtype/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ tape( 'the function returns the minimum ndarray data type for storing a provided
5959
];
6060
for ( i = 0; i < values.length; i++ ) {
6161
actual = minUnsignedIntegerDataType( values[i] );
62-
t.strictEqual( actual, expected[ i ], 'returns expected value when provided '+values[i] );
62+
t.strictEqual( String( actual ), expected[ i ], 'returns expected value when provided '+values[i] );
6363
}
6464
t.end();
6565
});

0 commit comments

Comments
 (0)