From 7fb1347f1318a47e7304925ded48426536eb2541 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 23 Jan 2017 18:12:46 +0000 Subject: Add test for joinZipPath --- test/zipfile.tests.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') diff --git a/test/zipfile.tests.js b/test/zipfile.tests.js index c838548..d539307 100644 --- a/test/zipfile.tests.js +++ b/test/zipfile.tests.js @@ -22,3 +22,12 @@ function emptyZipFile() { var buffer = zip.generate({type: "arraybuffer"}); return zipfile.openArrayBuffer(buffer); } + +test("joinZipPath", { + "joins relative path to base using forward slash": function() { + assert.equal( + zipfile.joinZipPath("one/two", "three/four"), + "one/two/three/four" + ) + } +}); -- cgit v1.2.3