Skip to content

Commit

Permalink
Adding forEach and copyFunction helpers for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 15, 2014
1 parent 95218d6 commit f5d7190
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"devDependencies": {
"tape": "~3.0.3",
"covert": "1.0.0",
"jscs": "~1.8.1"
"jscs": "~1.8.1",
"foreach": "~2.0.5"
},
"testling": {
"files": "test.js",
Expand Down
5 changes: 5 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
var test = require('tape');
var isEqual = require('./');

var forEach = require('foreach');
var copyFunction = function (fn) {
return Function('return ' + String(fn))();
};

test('primitives', function (t) {
t.ok(isEqual(), 'undefineds are equal');
t.ok(isEqual(null, null), 'nulls are equal');
Expand Down

0 comments on commit f5d7190

Please sign in to comment.