Skip to content

Commit 389cecc

Browse files
committed
test: fix variable name
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 23bddcf commit 389cecc

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@
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 `copyWithin` method for copying a sequence of tuple elements within a tuple', 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

4444
t.strictEqual( hasProp( p, 'copyWithin' ), true, 'has property' );
@@ -52,7 +52,7 @@ tape( 'the method throws an error if invoked with a `this` context which is not
5252
var p;
5353
var i;
5454

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

5858
values = [
@@ -84,7 +84,7 @@ tape( 'the method throws an error if invoked with a `this` context which is not
8484
var p;
8585
var i;
8686

87-
Point = namedtypetuple( [ 'x', 'y' ] );
87+
Point = namedtypedtuple( [ 'x', 'y' ] );
8888
p = new Point();
8989

9090
values = [
@@ -123,7 +123,7 @@ tape( 'the method copies a sequence of elements within a tuple', function test(
123123
4.0
124124
];
125125

126-
Point = namedtypetuple( [ 'x', 'y', 'z', 'w', 'v' ] );
126+
Point = namedtypedtuple( [ 'x', 'y', 'z', 'w', 'v' ] );
127127
p = new Point( arr );
128128

129129
p.copyWithin( 0, 3 );
@@ -153,7 +153,7 @@ tape( 'the method copies a sequence of elements within a tuple (negative target)
153153
4.0
154154
];
155155

156-
Point = namedtypetuple( [ 'x', 'y', 'z', 'w', 'v' ] );
156+
Point = namedtypedtuple( [ 'x', 'y', 'z', 'w', 'v' ] );
157157
p = new Point( arr );
158158

159159
p.copyWithin( -p.length, 3 );
@@ -183,7 +183,7 @@ tape( 'the method copies a sequence of elements within a tuple (negative start)'
183183
4.0
184184
];
185185

186-
Point = namedtypetuple( [ 'x', 'y', 'z', 'w', 'v' ] );
186+
Point = namedtypedtuple( [ 'x', 'y', 'z', 'w', 'v' ] );
187187
p = new Point( arr );
188188

189189
p.copyWithin( 0, -2 );
@@ -213,7 +213,7 @@ tape( 'the method copies a sequence of elements within a tuple (end=length)', fu
213213
4.0
214214
];
215215

216-
Point = namedtypetuple( [ 'x', 'y', 'z', 'w', 'v' ] );
216+
Point = namedtypedtuple( [ 'x', 'y', 'z', 'w', 'v' ] );
217217
p = new Point( arr );
218218

219219
p.copyWithin( 0, 3, p.length );
@@ -243,7 +243,7 @@ tape( 'the method copies a sequence of elements within a tuple (non-inclusive en
243243
4.0
244244
];
245245

246-
Point = namedtypetuple( [ 'x', 'y', 'z', 'w', 'v' ] );
246+
Point = namedtypedtuple( [ 'x', 'y', 'z', 'w', 'v' ] );
247247
p = new Point( arr );
248248

249249
p.copyWithin( 2, 0, 2 );
@@ -275,7 +275,7 @@ tape( 'the method copies a sequence of elements within a tuple (negative end)',
275275
4.0
276276
];
277277

278-
Point = namedtypetuple( [ 'x', 'y', 'z', 'w', 'v' ] );
278+
Point = namedtypedtuple( [ 'x', 'y', 'z', 'w', 'v' ] );
279279
p = new Point( arr );
280280

281281
p.copyWithin( 2, 0, -3 );
@@ -307,7 +307,7 @@ tape( 'the method copies a sequence of elements within a tuple (target >= length
307307
4.0
308308
];
309309

310-
Point = namedtypetuple( [ 'x', 'y', 'z', 'w', 'v' ] );
310+
Point = namedtypedtuple( [ 'x', 'y', 'z', 'w', 'v' ] );
311311
p = new Point( arr );
312312

313313
p.copyWithin( p.length, 3 );
@@ -335,7 +335,7 @@ tape( 'the method copies a sequence of elements within a tuple (target > start)'
335335
4.0
336336
];
337337

338-
Point = namedtypetuple( [ 'x', 'y', 'z', 'w', 'v' ] );
338+
Point = namedtypedtuple( [ 'x', 'y', 'z', 'w', 'v' ] );
339339
p = new Point( arr );
340340

341341
p.copyWithin( 2, 0 );

0 commit comments

Comments
 (0)