Skip to content

Commit

Permalink
test that once returns the correct value
Browse files Browse the repository at this point in the history
  • Loading branch information
jedcn committed Jul 1, 2015
1 parent 261f9d2 commit e342413
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions once/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ describe('once', function() {
return ++t;
});
var ret = init();
assert.deepEqual(ret, 11);
assert.deepEqual(init(), ret);
assert.deepEqual(init(), ret);
});
Expand Down

0 comments on commit e342413

Please sign in to comment.