UNPKG

@yoroi/common

Version:
22 lines (21 loc) 615 B
"use strict"; var _cacheRecordMaker = require("./cache-record-maker"); describe('cacheRecordMaker', () => { it('should create a cache record with the provided information', () => { const cacheInfo = { expires: 1234567890, hash: 'abc123' }; const record = { data: 'test' }; const expectedCacheRecord = { record, expires: cacheInfo.expires, hash: cacheInfo.hash }; const result = (0, _cacheRecordMaker.cacheRecordMaker)(cacheInfo, record); expect(result).toEqual(expectedCacheRecord); }); }); //# sourceMappingURL=cache-record-maker.test.js.map