12 lines
415 B
JavaScript
12 lines
415 B
JavaScript
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
|