test: tighten assertions and harness coverage

This commit is contained in:
Peter Steinberger
2026-05-08 05:27:57 +01:00
parent f62618f805
commit 9ef37d1907
822 changed files with 8918 additions and 6533 deletions

View File

@@ -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() {