improve typings and tests

This commit is contained in:
2016-07-05 03:47:38 +02:00
parent c7f87eebae
commit ae5b6b5afd
27 changed files with 125 additions and 67 deletions

View File

@@ -68,6 +68,15 @@ describe("smartgit",function(){
smartgit.pull(paths.temp);
})
});
describe("push",function(){
this.timeout(40000);
it("should error for noGit",function(){
smartgit.push(paths.noGit);
});
it("should push to origin",function(){
smartgit.push(paths.temp,"origin","master");
})
});
describe("remote",function(){
it("should error for noGit",function(){
smartgit.remote.add(paths.noGit,null,null);