Skip to content

Commit 63d1de7

Browse files
committed
chore: change to relative require path and fix code style
1 parent 57e8762 commit 63d1de7

File tree

1 file changed

+11
-11
lines changed
  • lib/node_modules/@stdlib/complex/base/parse/test

1 file changed

+11
-11
lines changed

lib/node_modules/@stdlib/complex/base/parse/test/test.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@
2020

2121
// MODULES //
2222

23-
var tape = require('tape');
24-
var parse = require('@stdlib/complex/base/parse/lib');
23+
var tape = require( 'tape' );
24+
var parse = require( './../lib' );
2525

2626

2727
// TESTS //
2828

29-
tape( 'main export is a function', function test(t) {
30-
t.ok(true, __filename);
31-
t.strictEqual(typeof parse, 'function', 'main export is a function');
29+
tape( 'main export is a function', function test( t ) {
30+
t.ok( true, __filename );
31+
t.strictEqual( typeof parse, 'function', 'main export is a function' );
3232
t.end();
3333
});
3434

35-
tape( 'the function returns complex like object if provided valid complex string', function test(t) {
35+
tape( 'the function returns complex like object if provided valid complex string', function test( t ) {
3636
var tests;
3737
var i;
3838

@@ -144,13 +144,13 @@ tape( 'the function returns complex like object if provided valid complex string
144144
}
145145
];
146146

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

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

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

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

0 commit comments

Comments
 (0)