Skip to content

Commit d45e350

Browse files
authored
chore: clean-up
Signed-off-by: Athan <[email protected]>
1 parent e2cda3f commit d45e350

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

lib/node_modules/@stdlib/dstructs/named-typed-tuple/test/test.for_each.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,36 @@
2323
var tape = require( 'tape' );
2424
var hasProp = require( '@stdlib/assert/has-property' );
2525
var isFunction = require( '@stdlib/assert/is-function' );
26-
var namedtypetuple = require( './../lib' );
26+
var namedtypedtuple = require( './../lib' );
2727

2828

2929
// TESTS //
3030

3131
tape( 'main export is a function', function test( t ) {
3232
t.ok( true, __filename );
33-
t.strictEqual( typeof namedtypetuple, 'function', 'main export is a function' );
33+
t.strictEqual( typeof namedtypedtuple, 'function', 'main export is a function' );
3434
t.end();
3535
});
3636

3737
tape( 'a tuple has a `forEach` method', function test( t ) {
3838
var Point;
3939
var p;
4040

41-
Point = namedtypetuple( [ 'x', 'y' ] );
41+
Point = namedtypedtuple( [ 'x', 'y' ] );
4242
p = new Point();
4343

44-
t.strictEqual( hasProp( p, 'forEach' ), true, 'has property' );
45-
t.strictEqual( isFunction( p.forEach ), true, 'has method' );
44+
t.strictEqual( hasProp( p, 'forEach' ), true, 'returns expected value' );
45+
t.strictEqual( isFunction( p.forEach ), true, 'returns expected value' );
4646
t.end();
4747
});
4848

49-
tape( 'the method throws an error if invoked with a `this` context which is not a namedtypetuple instance', function test( t ) {
49+
tape( 'the method throws an error if invoked with a `this` context which is not a tuple instance', function test( t ) {
5050
var values;
5151
var Point;
5252
var p;
5353
var i;
5454

55-
Point = namedtypetuple( [ 'x', 'y' ] );
55+
Point = namedtypedtuple( [ 'x', 'y' ] );
5656
p = new Point( [ 1, 2 ] );
5757

5858
values = [
@@ -89,7 +89,7 @@ tape( 'the method throws an error if provided a first argument which is not a fu
8989
var p;
9090
var i;
9191

92-
Point = namedtypetuple( [ 'x', 'y' ] );
92+
Point = namedtypedtuple( [ 'x', 'y' ] );
9393
p = new Point( [ 1, 2 ] );
9494

9595
values = [
@@ -120,15 +120,15 @@ tape( 'the method returns `undefined`', function test( t ) {
120120
var out;
121121
var p;
122122

123-
Point = namedtypetuple( [ 'x', 'y' ] );
123+
Point = namedtypedtuple( [ 'x', 'y' ] );
124124
p = new Point( [ 10, 20 ] );
125125
out = p.forEach( fcn );
126126

127127
t.strictEqual( out, void 0, 'returns expected value' );
128128
t.end();
129129

130130
function fcn( v ) {
131-
void v;
131+
return v;
132132
}
133133
});
134134

@@ -145,7 +145,7 @@ tape( 'the method invokes a provided function for each element in a tuple', func
145145
fieldNames = [];
146146
tuples = [];
147147

148-
Point = namedtypetuple( [ 'x', 'y', 'z' ] );
148+
Point = namedtypedtuple( [ 'x', 'y', 'z' ] );
149149
p = new Point( [ 1, 2, 3 ] );
150150
p.forEach( fcn );
151151

@@ -174,7 +174,7 @@ tape( 'the method supports providing an execution context', function test( t ) {
174174
ctx = {
175175
'count': 0
176176
};
177-
Point = namedtypetuple( [ 'x', 'y', 'z' ] );
177+
Point = namedtypedtuple( [ 'x', 'y', 'z' ] );
178178
p = new Point( [ 1, 2, 3 ] );
179179
p.forEach( fcn, ctx );
180180

0 commit comments

Comments
 (0)