Skip to content

Commit a5865b7

Browse files
committed
Update expected error messages
1 parent 43e4968 commit a5865b7

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

test/tests/rebase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ describe("Rebase", function() {
667667
"There should not be a rebase in progress");
668668
})
669669
.catch(function(e) {
670-
assert.equal(e.message, "There is no rebase in progress");
670+
assert.equal(e.message, "there is no rebase in progress");
671671
});
672672
})
673673
.then(function() {

test/tests/remote.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -388,13 +388,8 @@ describe("Remote", function() {
388388
// catches linux / osx failure to use anonymous credentials
389389
// stops callback infinite loop
390390
.catch(function (reason) {
391-
if (reason.message !==
392-
"Method push has thrown an error.")
393-
{
394-
throw reason;
395-
} else {
396-
return Promise.resolve();
397-
}
391+
assert.equal(reason.message.replace(/\n|\r/g, ""),
392+
"failed to set credentials: The parameter is incorrect.");
398393
});
399394
});
400395

test/tests/revparse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe("Revparse", function() {
3737
})
3838
.catch(function(error) {
3939
assert.ok(error instanceof Error);
40-
assert.equal(error.message, "Revspec 'INVALID' not found.");
40+
assert.equal(error.message, "revspec 'INVALID' not found");
4141
});
4242
});
4343

0 commit comments

Comments
 (0)