From 63d1de749b7277c6974cad2c078dfe1caa589063 Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Fri, 12 Apr 2024 22:08:19 -0400 Subject: [PATCH] chore: change to relative require path and fix code style --- .../@stdlib/complex/base/parse/test/test.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/node_modules/@stdlib/complex/base/parse/test/test.js b/lib/node_modules/@stdlib/complex/base/parse/test/test.js index 568aefdd2e7d..a3c8bfaf0348 100644 --- a/lib/node_modules/@stdlib/complex/base/parse/test/test.js +++ b/lib/node_modules/@stdlib/complex/base/parse/test/test.js @@ -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; @@ -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; @@ -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(); });