diff --git a/lib/node_modules/@stdlib/math/strided/special/abs-by/test/test.main.js b/lib/node_modules/@stdlib/math/strided/special/abs-by/test/test.main.js index 9808f30b8ba5..d9ef387f74f2 100644 --- a/lib/node_modules/@stdlib/math/strided/special/abs-by/test/test.main.js +++ b/lib/node_modules/@stdlib/math/strided/special/abs-by/test/test.main.js @@ -62,7 +62,8 @@ tape( 'the function computes the absolute value of each indexed strided array el absBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = []; + x.length = 5; // sparse array y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; @@ -70,7 +71,8 @@ tape( 'the function computes the absolute value of each indexed strided array el absBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = []; + x.length = 5; // sparse array x[ 2 ] = -3.0; y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];