Adjust api response

This commit is contained in:
Nora
2022-11-30 17:16:25 +01:00
parent f3e4766287
commit 3dd6effce5
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),
);
});