Skip to content
Prev Previous commit
Next Next commit
Updated to match new API
  • Loading branch information
tbranyen authored and John Haley committed Feb 19, 2015
commit e786cc7a2d7275b43878f52840355880596be1a4
11 changes: 7 additions & 4 deletions test/tests/remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,19 @@ describe("Remote", function() {

return repo.getRemote("origin")
.then(function(remote) {
remote.checkCert(0);
remote.setCallbacks({
certificateCheck: function() {
return 0;
},

transferProgress: function() {
wasCalled = true;
}
});

remote.connect(NodeGit.Enums.DIRECTION.FETCH);

return remote.download();
return remote.connect(NodeGit.Enums.DIRECTION.FETCH).then(function() {
return remote.download(null);
});
})
.then(function() {
assert.ok(wasCalled);
Expand Down