Skip to content

Commit

Permalink
chore: change to relative require path and fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Apr 13, 2024
1 parent 57e8762 commit 63d1de7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/node_modules/@stdlib/complex/base/parse/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@

// MODULES //

var tape = require('tape');
var parse = require('@stdlib/complex/base/parse/lib');
var tape = require( 'tape' );
var parse = require( './../lib' );


// TESTS //

tape( 'main export is a function', function test(t) {
t.ok(true, __filename);
t.strictEqual(typeof parse, 'function', 'main export is a function');
tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.strictEqual( typeof parse, 'function', 'main export is a function' );
t.end();
});

tape( 'the function returns complex like object if provided valid complex string', function test(t) {
tape( 'the function returns complex like object if provided valid complex string', function test( t ) {
var tests;
var i;

Expand Down Expand Up @@ -144,13 +144,13 @@ tape( 'the function returns complex like object if provided valid complex string
}
];

for (i = 0; i < tests.length; i++) {
t.deepEqual(parse(tests[i].value), tests[i].expected, 'returns expected complex like object');
for ( i = 0; i < tests.length; i++ ) {
t.deepEqual( parse( tests[ i ].value ), tests[ i ].expected, 'returns expected complex like object' );
}
t.end();
});

tape('the function returns null if provided input is not a complex number string', function test(t) {
tape( 'the function returns null if provided input is not a complex number string', function test( t ) {
var values;
var i;

Expand All @@ -164,8 +164,8 @@ tape('the function returns null if provided input is not a complex number string
NaN
];

for (i = 0; i < values.length; i++) {
t.strictEqual(parse( values[i] ), null, 'returns null');
for ( i = 0; i < values.length; i++ ) {
t.strictEqual( parse( values[ i ] ), null, 'returns null' );
}
t.end();
});

1 comment on commit 63d1de7

@stdlib-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report

Package Statements Branches Functions Lines
complex/base/parse $\color{red}164/166$
$\color{green}+98.80\%$
$\color{red}29/30$
$\color{green}+96.67\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{red}164/166$
$\color{green}+98.80\%$

The above coverage report was generated for the changes in this push.

Please sign in to comment.