wallet-core/node_modules/object-keys/test/isArguments.js

11 lines
376 B
JavaScript
Raw Normal View History

2016-10-10 03:43:44 +02:00
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();
});