mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 14:20:44 +00:00
test: tighten assertions and harness coverage
This commit is contained in:
@@ -168,8 +168,10 @@ vi.mock("../../runtime.js", () => ({
|
||||
function expectFirstInstallPlanCallOmitsToken() {
|
||||
const [firstArg] =
|
||||
(buildGatewayInstallPlanMock.mock.calls.at(0) as [Record<string, unknown>] | undefined) ?? [];
|
||||
expect(firstArg).toBeDefined();
|
||||
expect(firstArg && "token" in firstArg).toBe(false);
|
||||
if (firstArg === undefined) {
|
||||
throw new Error("expected first install-plan call");
|
||||
}
|
||||
expect("token" in firstArg).toBe(false);
|
||||
}
|
||||
|
||||
function mockResolvedGatewayTokenSecretRef() {
|
||||
|
||||
Reference in New Issue
Block a user