renovate/lib/util/compress.spec.ts
2022-10-10 14:01:53 +00:00

13 lines
342 B
TypeScript

import { compress, decompress } from './compress';
describe('util/compress', () => {
it('works', async () => {
const input = 'foobar';
const compressed = await compress(input);
expect(compressed).toBe('iwKAZm9vYmFyAw==');
const decompressed = await decompress(compressed);
expect(decompressed).toBe(input);
});
});