| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -388,8 +388,15 @@ describe("Remote", function() { | |||
| 388 | 388 | // catches linux / osx failure to use anonymous credentials | |
| 389 | 389 | // stops callback infinite loop | |
| 390 | 390 | .catch(function (reason) { | |
| 391 | - assert.equal(reason.message.replace(/\n|\r/g, ""), | ||
| 392 | - "failed to set credentials: The parameter is incorrect."); | ||
| 391 | + const messageWithoutNewlines = reason.message.replace(/\n|\r/g, ""); | ||
| 392 | + const validErrors = [ | ||
| 393 | + "Method push has thrown an error", | ||
| 394 | + "failed to set credentials: The parameter is incorrect." | ||
| 395 | + ]; | ||
| 396 | + assert.ok( | ||
| 397 | + validErrors.includes(messageWithoutNewlines), | ||
| 398 | + "Unexpected error: " + reason.message | ||
| 399 | + ); | ||
| 393 | 400 | }); | |
| 394 | 401 | }); | |
| 395 | 402 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments