mirror of https://github.com/renovatebot/renovate
14 lines
391 B
TypeScript
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);
|
|
});
|
|
});
|