fix(sandbox): compare list to config images (#563) - thanks @pasogott

This commit is contained in:
Peter Steinberger
2026-01-09 13:29:47 +01:00
parent 7883491ce2
commit 201c879772
3 changed files with 38 additions and 6 deletions

View File

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