mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 16:04:59 +00:00
refactor(test): consolidate doctor health and sandbox fixtures
This commit is contained in:
@@ -31,6 +31,19 @@ import { detectLegacyWorkspaceDirs } from "./doctor-workspace.js";
|
|||||||
describe("noteMemorySearchHealth", () => {
|
describe("noteMemorySearchHealth", () => {
|
||||||
const cfg = {} as OpenClawConfig;
|
const cfg = {} as OpenClawConfig;
|
||||||
|
|
||||||
|
async function expectNoWarningWithConfiguredRemoteApiKey(provider: string) {
|
||||||
|
resolveMemorySearchConfig.mockReturnValue({
|
||||||
|
provider,
|
||||||
|
local: {},
|
||||||
|
remote: { apiKey: "from-config" },
|
||||||
|
});
|
||||||
|
|
||||||
|
await noteMemorySearchHealth(cfg);
|
||||||
|
|
||||||
|
expect(note).not.toHaveBeenCalled();
|
||||||
|
expect(resolveApiKeyForProvider).not.toHaveBeenCalled();
|
||||||
|
}
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
note.mockReset();
|
note.mockReset();
|
||||||
resolveDefaultAgentId.mockClear();
|
resolveDefaultAgentId.mockClear();
|
||||||
@@ -40,29 +53,11 @@ describe("noteMemorySearchHealth", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("does not warn when remote apiKey is configured for explicit provider", async () => {
|
it("does not warn when remote apiKey is configured for explicit provider", async () => {
|
||||||
resolveMemorySearchConfig.mockReturnValue({
|
await expectNoWarningWithConfiguredRemoteApiKey("openai");
|
||||||
provider: "openai",
|
|
||||||
local: {},
|
|
||||||
remote: { apiKey: "from-config" },
|
|
||||||
});
|
|
||||||
|
|
||||||
await noteMemorySearchHealth(cfg);
|
|
||||||
|
|
||||||
expect(note).not.toHaveBeenCalled();
|
|
||||||
expect(resolveApiKeyForProvider).not.toHaveBeenCalled();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("does not warn in auto mode when remote apiKey is configured", async () => {
|
it("does not warn in auto mode when remote apiKey is configured", async () => {
|
||||||
resolveMemorySearchConfig.mockReturnValue({
|
await expectNoWarningWithConfiguredRemoteApiKey("auto");
|
||||||
provider: "auto",
|
|
||||||
local: {},
|
|
||||||
remote: { apiKey: "from-config" },
|
|
||||||
});
|
|
||||||
|
|
||||||
await noteMemorySearchHealth(cfg);
|
|
||||||
|
|
||||||
expect(note).not.toHaveBeenCalled();
|
|
||||||
expect(resolveApiKeyForProvider).not.toHaveBeenCalled();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("resolves provider auth from the default agent directory", async () => {
|
it("resolves provider auth from the default agent directory", async () => {
|
||||||
|
|||||||
@@ -35,6 +35,20 @@ function writeJson5(filePath: string, value: unknown) {
|
|||||||
fs.writeFileSync(filePath, JSON.stringify(value, null, 2), "utf-8");
|
fs.writeFileSync(filePath, JSON.stringify(value, null, 2), "utf-8");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function writeLegacySessionsFixture(params: {
|
||||||
|
root: string;
|
||||||
|
sessions: Record<string, { sessionId: string; updatedAt: number }>;
|
||||||
|
transcripts?: Record<string, string>;
|
||||||
|
}) {
|
||||||
|
const legacySessionsDir = path.join(params.root, "sessions");
|
||||||
|
fs.mkdirSync(legacySessionsDir, { recursive: true });
|
||||||
|
writeJson5(path.join(legacySessionsDir, "sessions.json"), params.sessions);
|
||||||
|
for (const [fileName, content] of Object.entries(params.transcripts ?? {})) {
|
||||||
|
fs.writeFileSync(path.join(legacySessionsDir, fileName), content, "utf-8");
|
||||||
|
}
|
||||||
|
return legacySessionsDir;
|
||||||
|
}
|
||||||
|
|
||||||
async function detectAndRunMigrations(params: {
|
async function detectAndRunMigrations(params: {
|
||||||
root: string;
|
root: string;
|
||||||
cfg: OpenClawConfig;
|
cfg: OpenClawConfig;
|
||||||
@@ -93,6 +107,21 @@ async function runStateDirMigration(root: string, env = {} as NodeJS.ProcessEnv)
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function runAutoMigrateLegacyStateWithLog(params: {
|
||||||
|
root: string;
|
||||||
|
cfg: OpenClawConfig;
|
||||||
|
now?: () => number;
|
||||||
|
}) {
|
||||||
|
const log = { info: vi.fn(), warn: vi.fn() };
|
||||||
|
const result = await autoMigrateLegacyState({
|
||||||
|
cfg: params.cfg,
|
||||||
|
env: { OPENCLAW_STATE_DIR: params.root } as NodeJS.ProcessEnv,
|
||||||
|
log,
|
||||||
|
now: params.now,
|
||||||
|
});
|
||||||
|
return { result, log };
|
||||||
|
}
|
||||||
|
|
||||||
function expectTargetAlreadyExistsWarning(result: StateDirMigrationResult, targetDir: string) {
|
function expectTargetAlreadyExistsWarning(result: StateDirMigrationResult, targetDir: string) {
|
||||||
expect(result.migrated).toBe(false);
|
expect(result.migrated).toBe(false);
|
||||||
expect(result.warnings).toEqual([
|
expect(result.warnings).toEqual([
|
||||||
@@ -104,18 +133,20 @@ describe("doctor legacy state migrations", () => {
|
|||||||
it("migrates legacy sessions into agents/<id>/sessions", async () => {
|
it("migrates legacy sessions into agents/<id>/sessions", async () => {
|
||||||
const root = await makeTempRoot();
|
const root = await makeTempRoot();
|
||||||
const cfg: OpenClawConfig = {};
|
const cfg: OpenClawConfig = {};
|
||||||
const legacySessionsDir = path.join(root, "sessions");
|
const legacySessionsDir = writeLegacySessionsFixture({
|
||||||
fs.mkdirSync(legacySessionsDir, { recursive: true });
|
root,
|
||||||
|
sessions: {
|
||||||
writeJson5(path.join(legacySessionsDir, "sessions.json"), {
|
"+1555": { sessionId: "a", updatedAt: 10 },
|
||||||
"+1555": { sessionId: "a", updatedAt: 10 },
|
"+1666": { sessionId: "b", updatedAt: 20 },
|
||||||
"+1666": { sessionId: "b", updatedAt: 20 },
|
"slack:channel:C123": { sessionId: "c", updatedAt: 30 },
|
||||||
"slack:channel:C123": { sessionId: "c", updatedAt: 30 },
|
"group:abc": { sessionId: "d", updatedAt: 40 },
|
||||||
"group:abc": { sessionId: "d", updatedAt: 40 },
|
"subagent:xyz": { sessionId: "e", updatedAt: 50 },
|
||||||
"subagent:xyz": { sessionId: "e", updatedAt: 50 },
|
},
|
||||||
|
transcripts: {
|
||||||
|
"a.jsonl": "a",
|
||||||
|
"b.jsonl": "b",
|
||||||
|
},
|
||||||
});
|
});
|
||||||
fs.writeFileSync(path.join(legacySessionsDir, "a.jsonl"), "a", "utf-8");
|
|
||||||
fs.writeFileSync(path.join(legacySessionsDir, "b.jsonl"), "b", "utf-8");
|
|
||||||
|
|
||||||
const detected = await detectLegacyStateMigrations({
|
const detected = await detectLegacyStateMigrations({
|
||||||
cfg,
|
cfg,
|
||||||
@@ -177,13 +208,7 @@ describe("doctor legacy state migrations", () => {
|
|||||||
fs.mkdirSync(legacyAgentDir, { recursive: true });
|
fs.mkdirSync(legacyAgentDir, { recursive: true });
|
||||||
fs.writeFileSync(path.join(legacyAgentDir, "auth.json"), "{}", "utf-8");
|
fs.writeFileSync(path.join(legacyAgentDir, "auth.json"), "{}", "utf-8");
|
||||||
|
|
||||||
const log = { info: vi.fn(), warn: vi.fn() };
|
const { result, log } = await runAutoMigrateLegacyStateWithLog({ root, cfg });
|
||||||
|
|
||||||
const result = await autoMigrateLegacyState({
|
|
||||||
cfg,
|
|
||||||
env: { OPENCLAW_STATE_DIR: root } as NodeJS.ProcessEnv,
|
|
||||||
log,
|
|
||||||
});
|
|
||||||
|
|
||||||
const targetAgentDir = path.join(root, "agents", "main", "agent");
|
const targetAgentDir = path.join(root, "agents", "main", "agent");
|
||||||
expect(fs.existsSync(path.join(targetAgentDir, "auth.json"))).toBe(true);
|
expect(fs.existsSync(path.join(targetAgentDir, "auth.json"))).toBe(true);
|
||||||
@@ -194,20 +219,19 @@ describe("doctor legacy state migrations", () => {
|
|||||||
it("auto-migrates legacy sessions on startup", async () => {
|
it("auto-migrates legacy sessions on startup", async () => {
|
||||||
const root = await makeTempRoot();
|
const root = await makeTempRoot();
|
||||||
const cfg: OpenClawConfig = {};
|
const cfg: OpenClawConfig = {};
|
||||||
|
const legacySessionsDir = writeLegacySessionsFixture({
|
||||||
const legacySessionsDir = path.join(root, "sessions");
|
root,
|
||||||
fs.mkdirSync(legacySessionsDir, { recursive: true });
|
sessions: {
|
||||||
writeJson5(path.join(legacySessionsDir, "sessions.json"), {
|
"+1555": { sessionId: "a", updatedAt: 10 },
|
||||||
"+1555": { sessionId: "a", updatedAt: 10 },
|
},
|
||||||
|
transcripts: {
|
||||||
|
"a.jsonl": "a",
|
||||||
|
},
|
||||||
});
|
});
|
||||||
fs.writeFileSync(path.join(legacySessionsDir, "a.jsonl"), "a", "utf-8");
|
|
||||||
|
|
||||||
const log = { info: vi.fn(), warn: vi.fn() };
|
const { result, log } = await runAutoMigrateLegacyStateWithLog({
|
||||||
|
root,
|
||||||
const result = await autoMigrateLegacyState({
|
|
||||||
cfg,
|
cfg,
|
||||||
env: { OPENCLAW_STATE_DIR: root } as NodeJS.ProcessEnv,
|
|
||||||
log,
|
|
||||||
now: () => 123,
|
now: () => 123,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -295,10 +319,11 @@ describe("doctor legacy state migrations", () => {
|
|||||||
const cfg: OpenClawConfig = {
|
const cfg: OpenClawConfig = {
|
||||||
agents: { list: [{ id: "alpha", default: true }] },
|
agents: { list: [{ id: "alpha", default: true }] },
|
||||||
};
|
};
|
||||||
const legacySessionsDir = path.join(root, "sessions");
|
writeLegacySessionsFixture({
|
||||||
fs.mkdirSync(legacySessionsDir, { recursive: true });
|
root,
|
||||||
writeJson5(path.join(legacySessionsDir, "sessions.json"), {
|
sessions: {
|
||||||
"+1555": { sessionId: "a", updatedAt: 10 },
|
"+1555": { sessionId: "a", updatedAt: 10 },
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const targetDir = path.join(root, "agents", "alpha", "sessions");
|
const targetDir = path.join(root, "agents", "alpha", "sessions");
|
||||||
@@ -314,11 +339,12 @@ describe("doctor legacy state migrations", () => {
|
|||||||
it("honors session.mainKey when seeding the direct-chat bucket", async () => {
|
it("honors session.mainKey when seeding the direct-chat bucket", async () => {
|
||||||
const root = await makeTempRoot();
|
const root = await makeTempRoot();
|
||||||
const cfg: OpenClawConfig = { session: { mainKey: "work" } };
|
const cfg: OpenClawConfig = { session: { mainKey: "work" } };
|
||||||
const legacySessionsDir = path.join(root, "sessions");
|
writeLegacySessionsFixture({
|
||||||
fs.mkdirSync(legacySessionsDir, { recursive: true });
|
root,
|
||||||
writeJson5(path.join(legacySessionsDir, "sessions.json"), {
|
sessions: {
|
||||||
"+1555": { sessionId: "a", updatedAt: 10 },
|
"+1555": { sessionId: "a", updatedAt: 10 },
|
||||||
"+1666": { sessionId: "b", updatedAt: 20 },
|
"+1666": { sessionId: "b", updatedAt: 20 },
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const targetDir = path.join(root, "agents", "main", "sessions");
|
const targetDir = path.join(root, "agents", "main", "sessions");
|
||||||
@@ -396,13 +422,7 @@ describe("doctor legacy state migrations", () => {
|
|||||||
main: { sessionId: "legacy", updatedAt: 10 },
|
main: { sessionId: "legacy", updatedAt: 10 },
|
||||||
});
|
});
|
||||||
|
|
||||||
const log = { info: vi.fn(), warn: vi.fn() };
|
const { result, log } = await runAutoMigrateLegacyStateWithLog({ root, cfg });
|
||||||
|
|
||||||
const result = await autoMigrateLegacyState({
|
|
||||||
cfg,
|
|
||||||
env: { OPENCLAW_STATE_DIR: root } as NodeJS.ProcessEnv,
|
|
||||||
log,
|
|
||||||
});
|
|
||||||
|
|
||||||
const store = JSON.parse(
|
const store = JSON.parse(
|
||||||
fs.readFileSync(path.join(targetDir, "sessions.json"), "utf-8"),
|
fs.readFileSync(path.join(targetDir, "sessions.json"), "utf-8"),
|
||||||
|
|||||||
@@ -8,6 +8,13 @@ import { healthCommand } from "./health.js";
|
|||||||
const callGatewayMock = vi.fn();
|
const callGatewayMock = vi.fn();
|
||||||
const logWebSelfIdMock = vi.fn();
|
const logWebSelfIdMock = vi.fn();
|
||||||
|
|
||||||
|
function createRecentSessionRows(now = Date.now()) {
|
||||||
|
return [
|
||||||
|
{ key: "main", updatedAt: now - 60_000, age: 60_000 },
|
||||||
|
{ key: "foo", updatedAt: null, age: null },
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
vi.mock("../gateway/call.js", () => ({
|
vi.mock("../gateway/call.js", () => ({
|
||||||
callGateway: (...args: unknown[]) => callGatewayMock(...args),
|
callGateway: (...args: unknown[]) => callGatewayMock(...args),
|
||||||
}));
|
}));
|
||||||
@@ -56,6 +63,7 @@ describe("healthCommand (coverage)", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("prints the rich text summary when linked and configured", async () => {
|
it("prints the rich text summary when linked and configured", async () => {
|
||||||
|
const recent = createRecentSessionRows();
|
||||||
callGatewayMock.mockResolvedValueOnce({
|
callGatewayMock.mockResolvedValueOnce({
|
||||||
ok: true,
|
ok: true,
|
||||||
ts: Date.now(),
|
ts: Date.now(),
|
||||||
@@ -104,20 +112,14 @@ describe("healthCommand (coverage)", () => {
|
|||||||
sessions: {
|
sessions: {
|
||||||
path: "/tmp/sessions.json",
|
path: "/tmp/sessions.json",
|
||||||
count: 2,
|
count: 2,
|
||||||
recent: [
|
recent,
|
||||||
{ key: "main", updatedAt: Date.now() - 60_000, age: 60_000 },
|
|
||||||
{ key: "foo", updatedAt: null, age: null },
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
sessions: {
|
sessions: {
|
||||||
path: "/tmp/sessions.json",
|
path: "/tmp/sessions.json",
|
||||||
count: 2,
|
count: 2,
|
||||||
recent: [
|
recent,
|
||||||
{ key: "main", updatedAt: Date.now() - 60_000, age: 60_000 },
|
|
||||||
{ key: "foo", updatedAt: null, age: null },
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
} satisfies HealthSummary);
|
} satisfies HealthSummary);
|
||||||
|
|
||||||
|
|||||||
@@ -72,6 +72,33 @@ function stubTelegramFetchOk(calls: string[]) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function runSuccessfulTelegramProbe(
|
||||||
|
config: Record<string, unknown>,
|
||||||
|
options?: { clearTokenEnv?: boolean },
|
||||||
|
) {
|
||||||
|
testConfig = config;
|
||||||
|
testStore = {};
|
||||||
|
vi.stubEnv("DISCORD_BOT_TOKEN", "");
|
||||||
|
if (options?.clearTokenEnv) {
|
||||||
|
vi.stubEnv("TELEGRAM_BOT_TOKEN", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
const calls: string[] = [];
|
||||||
|
stubTelegramFetchOk(calls);
|
||||||
|
|
||||||
|
const snap = await getHealthSnapshot({ timeoutMs: 25 });
|
||||||
|
const telegram = snap.channels.telegram as {
|
||||||
|
configured?: boolean;
|
||||||
|
probe?: {
|
||||||
|
ok?: boolean;
|
||||||
|
bot?: { username?: string };
|
||||||
|
webhook?: { url?: string };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
return { calls, telegram };
|
||||||
|
}
|
||||||
|
|
||||||
describe("getHealthSnapshot", () => {
|
describe("getHealthSnapshot", () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
setActivePluginRegistry(
|
setActivePluginRegistry(
|
||||||
@@ -112,22 +139,9 @@ describe("getHealthSnapshot", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("probes telegram getMe + webhook info when configured", async () => {
|
it("probes telegram getMe + webhook info when configured", async () => {
|
||||||
testConfig = { channels: { telegram: { botToken: "t-1" } } };
|
const { calls, telegram } = await runSuccessfulTelegramProbe({
|
||||||
testStore = {};
|
channels: { telegram: { botToken: "t-1" } },
|
||||||
vi.stubEnv("DISCORD_BOT_TOKEN", "");
|
});
|
||||||
|
|
||||||
const calls: string[] = [];
|
|
||||||
stubTelegramFetchOk(calls);
|
|
||||||
|
|
||||||
const snap = await getHealthSnapshot({ timeoutMs: 25 });
|
|
||||||
const telegram = snap.channels.telegram as {
|
|
||||||
configured?: boolean;
|
|
||||||
probe?: {
|
|
||||||
ok?: boolean;
|
|
||||||
bot?: { username?: string };
|
|
||||||
webhook?: { url?: string };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
expect(telegram.configured).toBe(true);
|
expect(telegram.configured).toBe(true);
|
||||||
expect(telegram.probe?.ok).toBe(true);
|
expect(telegram.probe?.ok).toBe(true);
|
||||||
expect(telegram.probe?.bot?.username).toBe("bot");
|
expect(telegram.probe?.bot?.username).toBe("bot");
|
||||||
@@ -140,18 +154,10 @@ describe("getHealthSnapshot", () => {
|
|||||||
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-health-"));
|
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-health-"));
|
||||||
const tokenFile = path.join(tmpDir, "telegram-token");
|
const tokenFile = path.join(tmpDir, "telegram-token");
|
||||||
fs.writeFileSync(tokenFile, "t-file\n", "utf-8");
|
fs.writeFileSync(tokenFile, "t-file\n", "utf-8");
|
||||||
testConfig = { channels: { telegram: { tokenFile } } };
|
const { calls, telegram } = await runSuccessfulTelegramProbe(
|
||||||
testStore = {};
|
{ channels: { telegram: { tokenFile } } },
|
||||||
vi.stubEnv("TELEGRAM_BOT_TOKEN", "");
|
{ clearTokenEnv: true },
|
||||||
|
);
|
||||||
const calls: string[] = [];
|
|
||||||
stubTelegramFetchOk(calls);
|
|
||||||
|
|
||||||
const snap = await getHealthSnapshot({ timeoutMs: 25 });
|
|
||||||
const telegram = snap.channels.telegram as {
|
|
||||||
configured?: boolean;
|
|
||||||
probe?: { ok?: boolean };
|
|
||||||
};
|
|
||||||
expect(telegram.configured).toBe(true);
|
expect(telegram.configured).toBe(true);
|
||||||
expect(telegram.probe?.ok).toBe(true);
|
expect(telegram.probe?.ok).toBe(true);
|
||||||
expect(calls.some((c) => c.includes("bott-file/getMe"))).toBe(true);
|
expect(calls.some((c) => c.includes("bott-file/getMe"))).toBe(true);
|
||||||
|
|||||||
@@ -250,6 +250,13 @@ describe("sandboxRecreateCommand", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe("confirmation flow", () => {
|
describe("confirmation flow", () => {
|
||||||
|
async function runCancelledConfirmation(confirmResult: boolean | symbol) {
|
||||||
|
mocks.listSandboxContainers.mockResolvedValue([createContainer()]);
|
||||||
|
mocks.clackConfirm.mockResolvedValue(confirmResult);
|
||||||
|
|
||||||
|
await sandboxRecreateCommand({ all: true, browser: false, force: false }, runtime as never);
|
||||||
|
}
|
||||||
|
|
||||||
it("should require confirmation without --force", async () => {
|
it("should require confirmation without --force", async () => {
|
||||||
mocks.listSandboxContainers.mockResolvedValue([createContainer()]);
|
mocks.listSandboxContainers.mockResolvedValue([createContainer()]);
|
||||||
mocks.clackConfirm.mockResolvedValue(true);
|
mocks.clackConfirm.mockResolvedValue(true);
|
||||||
@@ -261,20 +268,14 @@ describe("sandboxRecreateCommand", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should cancel when user declines", async () => {
|
it("should cancel when user declines", async () => {
|
||||||
mocks.listSandboxContainers.mockResolvedValue([createContainer()]);
|
await runCancelledConfirmation(false);
|
||||||
mocks.clackConfirm.mockResolvedValue(false);
|
|
||||||
|
|
||||||
await sandboxRecreateCommand({ all: true, browser: false, force: false }, runtime as never);
|
|
||||||
|
|
||||||
expect(runtime.log).toHaveBeenCalledWith("Cancelled.");
|
expect(runtime.log).toHaveBeenCalledWith("Cancelled.");
|
||||||
expect(mocks.removeSandboxContainer).not.toHaveBeenCalled();
|
expect(mocks.removeSandboxContainer).not.toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should cancel on clack cancel symbol", async () => {
|
it("should cancel on clack cancel symbol", async () => {
|
||||||
mocks.listSandboxContainers.mockResolvedValue([createContainer()]);
|
await runCancelledConfirmation(Symbol.for("clack:cancel"));
|
||||||
mocks.clackConfirm.mockResolvedValue(Symbol.for("clack:cancel"));
|
|
||||||
|
|
||||||
await sandboxRecreateCommand({ all: true, browser: false, force: false }, runtime as never);
|
|
||||||
|
|
||||||
expect(runtime.log).toHaveBeenCalledWith("Cancelled.");
|
expect(runtime.log).toHaveBeenCalledWith("Cancelled.");
|
||||||
expect(mocks.removeSandboxContainer).not.toHaveBeenCalled();
|
expect(mocks.removeSandboxContainer).not.toHaveBeenCalled();
|
||||||
|
|||||||
Reference in New Issue
Block a user