Skip to content

Commit

Permalink
+1 test for spaces in archive name #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Rossetti committed Oct 23, 2014
1 parent f848828 commit 558729c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/method.Zip.extractFull.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,15 @@ describe('Method: `Zip.extractFull`', function () {
});
});

it('should work with spaces too', function (done) {
it('should work with spaces in archive name', function (done) {
extractFull('test/zip spaces test.7z', '.tmp/test spaces one')
.then(function () {
expect(fs.existsSync('.tmp/test spaces one/zip')).to.be.eql(true);
done();
});
});

it('should work with spaces in destination', function (done) {
extractFull('test/zip.7z', '.tmp/test spaces agai n')
.then(function () {
expect(fs.existsSync('.tmp/test spaces agai n/zip')).to.be.eql(true);
Expand Down
Binary file added test/zip spaces test.7z
Binary file not shown.

0 comments on commit 558729c

Please sign in to comment.