Skip to content

Commit b4a0d74

Browse files
authored
test: reorder tests
Signed-off-by: Athan <[email protected]>
1 parent 272428a commit b4a0d74

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.to_locale_string.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ tape( 'main export is a function', function test( t ) {
3434
t.end();
3535
});
3636

37+
tape( 'a tuple has a `toLocaleString` method', function test( t ) {
38+
var Point;
39+
var p;
40+
41+
Point = namedtypedtuple( [ 'x', 'y' ] );
42+
p = new Point();
43+
44+
t.strictEqual( hasProp( p, 'toLocaleString' ), true, 'returns expected value' );
45+
t.strictEqual( isFunction( p.toLocaleString ), true, 'returns expected value' );
46+
t.end();
47+
});
48+
3749
tape( 'the method throws an error if invoked with a `this` context which is not a tuple instance', function test( t ) {
3850
var values;
3951
var Point;
@@ -66,18 +78,6 @@ tape( 'the method throws an error if invoked with a `this` context which is not
6678
}
6779
});
6880

69-
tape( 'a tuple has a `toLocaleString` method', function test( t ) {
70-
var Point;
71-
var p;
72-
73-
Point = namedtypedtuple( [ 'x', 'y' ] );
74-
p = new Point();
75-
76-
t.strictEqual( hasProp( p, 'toLocaleString' ), true, 'returns expected value' );
77-
t.strictEqual( isFunction( p.toLocaleString ), true, 'returns expected value' );
78-
t.end();
79-
});
80-
8181
tape( 'the method serializes a tuple as a locale-specific string (default locale)', function test( t ) {
8282
var expected;
8383
var actual;

0 commit comments

Comments
 (0)