Skip to content

Commit fb45762

Browse files
committed
test: resolve test failure
--- 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 7dca603 commit fb45762

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/no-builtin-math/test/fixtures/invalid.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
'use strict';
2020

2121
var invalid = [];
22-
var test;
2322

24-
test = {
23+
var test = {
2524
'code': [
2625
'// VARIABLES //',
2726
'',
@@ -91,6 +90,21 @@ test = {
9190
};
9291
invalid.push( test );
9392

93+
test = {
94+
'code': [
95+
'// VARIABLES //',
96+
'',
97+
'var out = Math.imul( -5, 12 );'
98+
].join( '\n' ),
99+
'errors': [
100+
{
101+
'message': 'Use the package `@stdlib/number/int32/base/mul` instead of `Math.imul`',
102+
'type': 'MemberExpression'
103+
}
104+
]
105+
};
106+
invalid.push( test );
107+
94108

95109
// EXPORTS //
96110

lib/node_modules/@stdlib/_tools/eslint/rules/no-builtin-math/test/fixtures/unvalidated.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
'use strict';
2020

2121
var valid = [];
22-
var test;
2322

24-
test = {
23+
var test = {
2524
'code': [
2625
'// VARIABLES //',
2726
'',

lib/node_modules/@stdlib/_tools/eslint/rules/no-builtin-math/test/fixtures/valid.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
'use strict';
2020

2121
var valid = [];
22-
var test;
2322

24-
test = {
23+
var test = {
2524
'code': [
2625
'// VARIABLES //',
2726
'',
@@ -52,7 +51,7 @@ test = {
5251
'code': [
5352
'// VARIABLES //',
5453
'',
55-
'var out = Math.imul( -5, 12 );' // TODO: remove once an equivalent to `Math.imul` is present in the project
54+
'var out = imul( -5, 12 );'
5655
].join( '\n' )
5756
};
5857
valid.push( test );

0 commit comments

Comments
 (0)