Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
12
node_modules/javascript-time-ago/modules/cache.test.js
generated
vendored
Normal file
12
node_modules/javascript-time-ago/modules/cache.test.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import Cache from './cache';
|
||||
describe('cache', function () {
|
||||
it('should cache', function () {
|
||||
var cache = new Cache();
|
||||
var value = {};
|
||||
expect(cache.get('123', '456')).to.be.undefined;
|
||||
expect(cache.put('123', '456', value)).to.equal(value);
|
||||
expect(cache.get('123', '456')).to.equal(value);
|
||||
expect(cache.put('123', '789', 123)).to.equal(123);
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=cache.test.js.map
|
||||
Reference in New Issue
Block a user