Show More
Commit Description:
Update README.rdoc
Commit Description:
Update README.rdoc
References:
File last commit:
Show/Diff file:
Action:
node_modules/ext/test/function/identity.js
| 14 lines
| 386 B
| application/javascript
| JavascriptLexer
|
r789 | "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); | ||||
}); | ||||
}); | ||||