fix(sandbox): compare list to config images (#563) - thanks @pasogott
This commit is contained in:
@@ -221,6 +221,8 @@ describe("sandboxRecreateCommand", () => {
|
||||
"Please specify --all, --session <key>, or --agent <id>",
|
||||
);
|
||||
expect(runtime.exit).toHaveBeenCalledWith(1);
|
||||
expect(mocks.listSandboxContainers).not.toHaveBeenCalled();
|
||||
expect(mocks.listSandboxBrowsers).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("should error if multiple filters specified", async () => {
|
||||
@@ -234,6 +236,8 @@ describe("sandboxRecreateCommand", () => {
|
||||
"Please specify only one of: --all, --session, --agent",
|
||||
);
|
||||
expect(runtime.exit).toHaveBeenCalledWith(1);
|
||||
expect(mocks.listSandboxContainers).not.toHaveBeenCalled();
|
||||
expect(mocks.listSandboxBrowsers).not.toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user