1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-03 12:50:04 +02:00
Files
gitlit/node_modules/object-keys/test/isArguments.js
2018-06-03 13:57:23 +02:00

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();
});