You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
376 B
JavaScript
11 lines
376 B
JavaScript
var test = require('tape');
|
|
var isArguments = require('../isArguments');
|
|
|
|
test('is.arguments', function (t) {
|
|
t.notOk(isArguments([]), 'array is not arguments');
|
|
(function () { t.ok(isArguments(arguments), 'arguments is arguments'); }());
|
|
(function () { t.notOk(isArguments(Array.prototype.slice.call(arguments)), 'sliced arguments is not arguments'); }());
|
|
t.end();
|
|
});
|
|
|