now differentiating between URL and FilePath

This commit is contained in:
2016-03-26 12:07:17 +01:00
parent 202914b19b
commit 451e2e241f
4 changed files with 6 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ describe("smartpath",function(){
smartpath.transform.toAbsolute(relativeString,baseString).should.equal("/basedir/somedir/somefile.txt");
});
it("should make an array of relative Strings an Array of absolute Strings",function(){
let absoluteArray = smartpath.transform.toAbsolute(relativeArray);
let absoluteArray = smartpath.transform.toAbsolute(relativeArray,baseString);
absoluteArray[2].should.startWith("/");
absoluteArray[2].should.endWith(relativeString2);