mirror of
https://github.com/tiennm99/FBcount.git
synced 2026-05-22 14:24:26 +00:00
Init
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
"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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user