now exposing home

This commit is contained in:
2016-04-04 16:25:17 +02:00
parent fb62b0aac7
commit 209ff095a4
8 changed files with 51 additions and 8 deletions

View File

@@ -36,5 +36,13 @@ describe("smartpath",function(){
smartpath.get.type("./some/relative/path/").should.not.equal("url");
});
});
describe(".get()",function(){
it("should a absolute path for an home relative URL",function(){
console.log(smartpath.get.home("~/test"));
});
it("should return the home directory path when no argument is specified",function(){
console.log(smartpath.get.home());
});
});
});
});