Skip to content

Commit

Permalink
chore: multibyte characters path case use nosort (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
zp1996 authored and zcbenz committed May 28, 2019
1 parent 709923d commit 2fa3185
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/api-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ describe('api', function () {
return compDirs('tmp/extractthis-unpack-dir-api/', 'test/expected/extractthis')
})
it('should handle multibyte characters in paths', async () => {
await asar.createPackage('test/input/packthis-unicode-path/', 'tmp/packthis-unicode-path.asar')
await asar.createPackageWithOptions('test/input/packthis-unicode-path/', 'tmp/packthis-unicode-path.asar', {
globOptions: {
nosort: true
}
})
return compFiles('tmp/packthis-unicode-path.asar', 'test/expected/packthis-unicode-path.asar')
})
it('should extract a text file from archive with multibyte characters in path', async () => {
Expand Down

0 comments on commit 2fa3185

Please sign in to comment.