Skip to content

Commit be09423

Browse files
author
John Haley
committed
Added a fetch test
1 parent 676facb commit be09423

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

test/tests/remote.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,19 @@ describe("Remote", function() {
8686
});
8787
});
8888
});
89+
90+
it("can fetch from a remote", function() {
91+
var repo = this.repository;
92+
93+
return Remote.load(repo, "origin")
94+
.then(function(remote) {
95+
remote.connect(0);
96+
return remote.download();
97+
})
98+
.then(function() {
99+
assert(true);
100+
}, function() {
101+
assert(false);
102+
});
103+
});
89104
});

0 commit comments

Comments
 (0)