Skip to content

Commit 59444c1

Browse files
committed
fix concat issues
1 parent f6d299f commit 59444c1

1 file changed

Lines changed: 27 additions & 27 deletions

File tree

test/tests/remote.js

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -191,34 +191,34 @@ describe("Remote", function() {
191191
});
192192
});
193193

194-
it("can reject fetching from private repository without valid " +
195-
"credentials", function() {
196-
this.timeout(15000);
197-
198-
var repo = this.repository;
199-
var remote = Remote.create(repo, "private", privateUrl);
200-
var fetchOptions = {
201-
callbacks: {
202-
credentials: function(url, userName) {
203-
return NodeGit.Cred.sshKeyFromAgent(userName);
204-
},
205-
certificateCheck: function() {
206-
return 1;
207-
}
194+
it("can reject fetching from private repository without valid credentials",
195+
function() {
196+
this.timeout(15000);
197+
198+
var repo = this.repository;
199+
var remote = Remote.create(repo, "private", privateUrl);
200+
var fetchOptions = {
201+
callbacks: {
202+
credentials: function(url, userName) {
203+
return NodeGit.Cred.sshKeyFromAgent(userName);
204+
},
205+
certificateCheck: function() {
206+
return 1;
208207
}
209-
};
210-
211-
return remote.fetch(null, fetchOptions, "Fetch from private")
212-
.then(function () {
213-
assert.fail("Should not be able to fetch from repository");
214-
})
215-
.catch(function(error) {
216-
assert.equal(
217-
error.message.trim(),
218-
"ERROR: Repository not found.",
219-
"Should not be able to find repository."
220-
);
221-
});
208+
}
209+
};
210+
211+
return remote.fetch(null, fetchOptions, "Fetch from private")
212+
.then(function () {
213+
assert.fail("Should not be able to fetch from repository");
214+
})
215+
.catch(function(error) {
216+
assert.equal(
217+
error.message.trim(),
218+
"ERROR: Repository not found.",
219+
"Should not be able to find repository."
220+
);
221+
});
222222
});
223223

224224
it("can fetch from all remotes", function() {

0 commit comments

Comments
 (0)