mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-01 08:12:43 +00:00
test: mock the wizard session refusal in the setup telemetry consent test
This commit is contained in:
@@ -10,7 +10,7 @@ import { NextRequest } from 'next/server';
|
||||
// It changes only the consent fields of what is stored now.
|
||||
|
||||
vi.mock('@/lib/setup/state', () => ({ detectSetupState: () => 'bootstrap' }));
|
||||
vi.mock('@/lib/setup/session', () => ({ authenticateWizardRequest: async () => true }));
|
||||
vi.mock('@/lib/setup/session', () => ({ authenticateWizardRequest: async () => true, wizardSessionRefusal: async () => null }));
|
||||
vi.mock('@/lib/admin/config-manager', () => ({
|
||||
configManager: { ensureLoaded: async () => {}, setAdminConfig: async () => {} },
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user