mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-12-30 09:46:15 -05:00
16 lines
410 B
JavaScript
16 lines
410 B
JavaScript
|
'use strict';
|
||
|
var common = require('../common');
|
||
|
|
||
|
describe('Compression', function () {
|
||
|
it('does not truncate messages', function () {
|
||
|
var message = fs.readFileSync('test/compression-sample.txt', 'utf8');
|
||
|
assert.strictEqual(
|
||
|
message,
|
||
|
Base64.btou( RawDeflate.inflate(
|
||
|
RawDeflate.deflate( Base64.utob(message) )
|
||
|
) )
|
||
|
);
|
||
|
});
|
||
|
});
|
||
|
|