0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 05:28:35 +00:00
renovatebot_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);
});
});