Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2094b51

Browse files
committed
Minor test tweak
1 parent4a326f1 commit2094b51

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

‎test/tests/remote.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,9 @@ describe("Remote", function() {
9191
it("can download from a remote",function(){
9292
varrepo=this.repository;
9393

94-
returnRemote.load(repo,"origin")
95-
.then(function(remote){
94+
returnRemote.load(repo,"origin").then(function(remote){
9695
remote.connect(NodeGit.Enums.DIRECTION.FETCH);
9796
returnremote.download();
98-
})
99-
.then(function(){
100-
assert(true);
101-
},function(){
102-
assert(false);
10397
});
10498
});
10599

@@ -114,7 +108,7 @@ describe("Remote", function() {
114108
it("can fetch from all remotes",function(){
115109
// Set a reasonable timeout here for the fetchAll test
116110
this.timeout(15000);
117-
111+
118112
returnthis.repository.fetchAll({
119113
credentials:function(url,userName){
120114
returnNodeGit.Cred.sshKeyFromAgent(userName);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp