aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/docx/files.tests.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/docx/files.tests.js b/tests/docx/files.tests.js
index d3f3391..fecc6eb 100644
--- a/tests/docx/files.tests.js
+++ b/tests/docx/files.tests.js
@@ -4,6 +4,7 @@ var assert = require("assert");
var promises = require("../../lib/promises");
var Files = require("../../lib/docx/files").Files;
+var uriToPath = require("../../lib/docx/files").uriToPath;
var testing = require("../testing");
var test = testing.test;
@@ -22,3 +23,10 @@ describe("Files", function() {
});
});
});
+
+
+describe("uriToPath", function() {
+ test("leading slash is retained on non-Windows file URIs", function() {
+ assert.equal(uriToPath("file:///a/b/c"), "/a/b/c");
+ });
+});