aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-01-23 18:18:50 +0000
committerMichael Williamson <mike@zwobble.org>2017-01-23 18:24:43 +0000
commit840dcaae21c2b8b478e5f1bfed599885f6177672 (patch)
treed3411f64ab33b2358d5c5bf582b398819f54ab9f /test
parent7fb1347f1318a47e7304925ded48426536eb2541 (diff)
Handle joining of absolute zip paths
Diffstat (limited to 'test')
-rw-r--r--test/zipfile.tests.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/zipfile.tests.js b/test/zipfile.tests.js
index d539307..52389a8 100644
--- a/test/zipfile.tests.js
+++ b/test/zipfile.tests.js
@@ -29,5 +29,12 @@ test("joinZipPath", {
zipfile.joinZipPath("one/two", "three/four"),
"one/two/three/four"
)
+ },
+
+ "joining base to absolute path ignores base": function() {
+ assert.equal(
+ zipfile.joinZipPath("one/two", "/three/four"),
+ "/three/four"
+ )
}
});