Skip to content

Commit

Permalink
Merge pull request #32 from jedcn/assert-once-value
Browse files Browse the repository at this point in the history
test that once returns the correct value
  • Loading branch information
kolodny authored Nov 25, 2016
2 parents 9d620c2 + e342413 commit bc0f04f
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 bc0f04f

Please sign in to comment.