renovate/lib/util/compress.spec.ts

14 lines
391 B
TypeScript

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