Sindbad~EG File Manager

Current Path : /home/infinitibizsol/insurcrm.infinitibizsol.com/node_modules/mammoth/test/docx/
Upload File :
Current File : /home/infinitibizsol/insurcrm.infinitibizsol.com/node_modules/mammoth/test/docx/uris.tests.js

var assert = require("assert");

var zipfile = require("../../lib/docx/uris");
var test = require("../test")(module);


test("uriToZipEntryName", {
    "when path does not have leading slash then path is resolved relative to base": function() {
        assert.equal(
            zipfile.uriToZipEntryName("one/two", "three/four"),
            "one/two/three/four"
        );
    },

    "when path has leading slash then base is ignored": function() {
        assert.equal(
            zipfile.uriToZipEntryName("one/two", "/three/four"),
            "three/four"
        );
    }
});


Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists