test: dedupe wizard install plan mock read

This commit is contained in:
Peter Steinberger
2026-05-13 05:39:56 +01:00
parent 14170f1be8
commit 4e8d9d26a9
+2 -1
View File
@@ -179,7 +179,8 @@ function createWebSearchProviderEntry(
function expectFirstOnboardingInstallPlanCallOmitsToken() {
const [firstArg] =
(buildGatewayInstallPlan.mock.calls.at(0) as [Record<string, unknown>] | undefined) ?? [];
(buildGatewayInstallPlan.mock.calls[0] as unknown as [Record<string, unknown>] | undefined) ??
[];
if (!firstArg) {
throw new Error("expected first onboarding install plan call");
}