You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
386 B
14 lines
386 B
"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); |
|
}); |
|
});
|
|
|