Merge pull request #1814 from github/nora/adjust-errormessage-api-response

Adjust for new GitHub Api response
This commit is contained in:
Nora
2022-12-01 12:24:28 +01:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -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."
}
}
}

View File

@@ -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),
);
});