my-idlers/node_modules/ext/test/function/identity.js
cp6 fd22b0bf58 V2 (Laravel re-make)
V2 (Laravel re-make)
2022-03-06 02:02:12 +11:00

15 lines
386 B
JavaScript
Vendored

"use strict";
var assert = require("chai").assert
, identity = require("../../function/identity");
describe("function/identity", function () {
it("Should return first argument", function () {
assert.equal(identity("foo"), "foo");
var object = {};
assert.equal(identity(object), object);
assert.equal(identity(), undefined);
assert.equal(identity(1, 2, 3), 1);
});
});