UNPKG

@yoroi/common

Version:

The Common package of Yoroi SDK

20 lines 577 B
import { cacheRecordMaker } from './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 = cacheRecordMaker(cacheInfo, record); expect(result).toEqual(expectedCacheRecord); }); }); //# sourceMappingURL=cache-record-maker.test.js.map