Merge pull request #1814 from github/nora/adjust-errormessage-api-response
Adjust for new GitHub Api response
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"response": {
|
||||
"status": 422,
|
||||
"body": {
|
||||
"message": "No repositories could be queried."
|
||||
"message": "Unable to trigger a variant analysis. None of the requested repositories could be found."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -192,7 +192,9 @@ describe("Variant Analysis Submission Integration", () => {
|
||||
await commands.executeCommand("codeQL.runVariantAnalysis");
|
||||
|
||||
expect(showErrorMessageSpy).toHaveBeenCalledWith(
|
||||
expect.stringContaining("No repositories could be queried."),
|
||||
expect.stringContaining(
|
||||
"Unable to trigger a variant analysis. None of the requested repositories could be found.",
|
||||
),
|
||||
expect.any(String),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user