From 840dcaae21c2b8b478e5f1bfed599885f6177672 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 23 Jan 2017 18:18:50 +0000 Subject: Handle joining of absolute zip paths --- test/zipfile.tests.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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" + ) } }); -- cgit v1.2.3