blob: 62a07c2d88aff91392f1c397fcc71d609af3520e (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
|
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();
});
|