Skip to content

Commit

Permalink
Not-exists test on incr should delete the key first.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpblog committed Mar 21, 2012
1 parent d2223be commit a929934
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/incr.js
Expand Up @@ -56,8 +56,10 @@ describe('Incr/Decr', function() {
});

it('incr should set value to 1 if value not existant', function(done) {
client.incr('notexists', function(res) {
done(assert.equal(res, 1));
client.del('notexists', function(resp) {
client.incr('notexists', function(res) {
done(assert.equal(res, 1));
});
});
});

Expand Down

0 comments on commit a929934

Please sign in to comment.