Skip to content

Commit

Permalink
added test for 438
Browse files Browse the repository at this point in the history
  • Loading branch information
5saviahv committed Jun 1, 2024
1 parent 9c37fa8 commit 3fbc83c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,16 @@ describe("adm-zip", () => {
fs.unlinkSync("./text.txt");
});

it("passes issue-438-AddFile with windows path sepator", () => {
const zip = new Zip();
zip.addFile("foo\\bar.txt", "test", "test");
zip.extractAllTo(destination);

const files = walk(destination);

expect(files.sort()).to.deep.equal([pth.normalize("./test/xxx/foo/bar.txt")].sort());
});

it("testing noSort option", () => {
const content = "test";
const comment = "comment";
Expand Down

0 comments on commit 3fbc83c

Please sign in to comment.