mirror of
https://github.com/addaleax/lzma-native.git
synced 2024-11-13 13:29:17 +00:00
18 lines
424 B
JavaScript
18 lines
424 B
JavaScript
'use strict';
|
|
|
|
var lzma = require('../');
|
|
var fs = require('fs');
|
|
var assert = require('assert');
|
|
|
|
describe('regression-#53', function() {
|
|
it('should perform correctly', function(done) {
|
|
var input = fs.readFileSync('test/invalid.xz');
|
|
|
|
lzma.decompress(input, function(result, error) {
|
|
assert.strictEqual(result, null);
|
|
assert.strictEqual(error.name, 'LZMA_DATA_ERROR');
|
|
done();
|
|
});
|
|
});
|
|
});
|