-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f7cfd2
commit dfa668d
Showing
3 changed files
with
35 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,8 +35,8 @@ describe('compress', function () { | |
}); | ||
|
||
test('decompress() with empty buffer', async function () { | ||
expect(await decompress(Buffer.from([]))).to.deep.equal(Buffer.from([])) | ||
}) | ||
expect(await decompress(Buffer.from([]))).to.deep.equal(Buffer.from([])); | ||
}); | ||
}); | ||
|
||
/** | ||
|
@@ -45,6 +45,13 @@ describe('compress', function () { | |
*/ | ||
function testSuite(decompress, compress) { | ||
return function () { | ||
beforeEach(function () { | ||
const isLinuxs390x = process.platform === 'linux' && process.arch === 's390x'; | ||
if (isLinuxs390x) { | ||
// [email protected] did not support s390x, so we cannot run compatibility tests against it. | ||
this.skip(); | ||
} | ||
}); | ||
test('empty', async function () { | ||
const input = Buffer.from('', 'utf8'); | ||
const result = await decompress(await compress(input)); | ||
|