summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-01-23 18:12:46 +0000
committerMichael Williamson <mike@zwobble.org>2017-01-23 18:24:43 +0000
commit7fb1347f1318a47e7304925ded48426536eb2541 (patch)
treedc4fe871d21a3f647ed83a1702f20519ca0d232f
parentc107c1c2b571947c0bc1f03f53b065b82f6a4c8f (diff)
Add test for joinZipPath
-rw-r--r--test/zipfile.tests.js9
1 files changed, 9 insertions, 0 deletions
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"
+ )
+ }
+});