Merge pull request #2151 from github/koesie10/packaging-error-message

Add check for error message for packaging.test.ts
This commit is contained in:
Koen Vlaswinkel
2023-03-10 10:33:51 +01:00
committed by GitHub

View File

@@ -61,6 +61,7 @@ describe("Packaging commands", () => {
);
await handleDownloadPacks(cli, progress);
expect(showAndLogExceptionWithTelemetrySpy).not.toHaveBeenCalled();
expect(showAndLogInformationMessageSpy).toHaveBeenCalledWith(
expect.stringContaining("Finished downloading packs."),
);
@@ -73,6 +74,7 @@ describe("Packaging commands", () => {
inputBoxSpy.mockResolvedValue("codeql/csharp-solorigate-queries");
await handleDownloadPacks(cli, progress);
expect(showAndLogExceptionWithTelemetrySpy).not.toHaveBeenCalled();
expect(showAndLogInformationMessageSpy).toHaveBeenCalledWith(
expect.stringContaining("Finished downloading packs."),
);