We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c37fa8 commit 3fbc83cCopy full SHA for 3fbc83c
test/mocha.js
@@ -218,6 +218,16 @@ describe("adm-zip", () => {
218
fs.unlinkSync("./text.txt");
219
});
220
221
+ it("passes issue-438-AddFile with windows path sepator", () => {
222
+ const zip = new Zip();
223
+ zip.addFile("foo\\bar.txt", "test", "test");
224
+ zip.extractAllTo(destination);
225
+
226
+ const files = walk(destination);
227
228
+ expect(files.sort()).to.deep.equal([pth.normalize("./test/xxx/foo/bar.txt")].sort());
229
+ });
230
231
it("testing noSort option", () => {
232
const content = "test";
233
const comment = "comment";
0 commit comments