Merge pull request #2151 from github/koesie10/packaging-error-message
Add check for error message for packaging.test.ts
This commit is contained in:
@@ -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."),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user