add getName function

This commit is contained in:
2016-02-20 06:06:43 +01:00
parent 841c8aa114
commit 77e473fe81
7 changed files with 39 additions and 6 deletions

View File

@@ -22,7 +22,14 @@ describe("projectinfo",function(){
it("should have .name",function(){
myNpm
.should.have.property("name","testpackage");
})
});
});
describe(".getName()",function(){
it("should return a name",function(){
projectinfo.getName(testBasePath)
.should.equal("testpackage");
});
})
});