now adding token correctly

This commit is contained in:
2016-02-23 09:36:40 +01:00
parent ed0c947a2e
commit e43322defd
7 changed files with 17 additions and 16 deletions

View File

@@ -6,7 +6,7 @@ var testBasePath = path.resolve(__dirname);
describe("projectinfo",function(){
describe(".npm() return",function(){
var myNpm = projectinfo.npm(testBasePath);
var myNpm = projectinfo.npm(testBasePath,{gitAccessToken:"sometoken"});
it("should have .packageJson",function(){
myNpm.packageJson
.should.have.property("version","1.0.0");
@@ -30,7 +30,7 @@ describe("projectinfo",function(){
});
it("should have .git",function(){
myNpm.git.httpsUrl
.should.equal("https://github.com/someuser/somerepo.git");
.should.equal("https://sometoken@github.com/someuser/somerepo.git");
});
});