mirror of
https://github.com/samsonjs/kwikemon.git
synced 2026-04-13 12:15:51 +00:00
test setting ttl via kwikemon.ttl(name, ttl)
This commit is contained in:
parent
70fc6363ab
commit
f8a09636d1
1 changed files with 11 additions and 0 deletions
11
test.js
11
test.js
|
|
@ -131,6 +131,17 @@ describe("kwikemon", function() {
|
|||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it("should set a ttl if given one", function(done) {
|
||||
kwikemon.set('foo', 'bar', function(err) {
|
||||
kwikemon.ttl('foo', 100, function(err) {
|
||||
kwikemon.ttl('foo', function(err, ttl) {
|
||||
assert(ttl <= 100);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("#fetchAll", function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue