Skip to content

Commit

Permalink
Added MemoryStore#clear() test
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jul 9, 2010
1 parent 549f89f commit 93f06a2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/session.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ module.exports = {
assert.ok(!err);
assert.ok(!req.session, 'Test Session#destroy()');
});
req.sessionStore.clear(function(err){
assert.ok(!err);
req.sessionStore.length(function(err, len){
assert.equal(0, len, 'Test MemoryStore#clear()');
});
});
break;
}
next();
Expand Down

0 comments on commit 93f06a2

Please sign in to comment.