react-time-ago
Version:
Localized relative date/time formatting in React
12 lines • 418 B
JavaScript
import Cache from './cache.js';
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