mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 05:39:10 +00:00
13 lines
391 B
TypeScript
13 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);
|
|
});
|
|
});
|