mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-31 00:12:39 +00:00
test: give the plugin proxy route test the config reader the mode needs #903
This commit is contained in:
@@ -13,7 +13,7 @@ vi.mock('@/lib/stalwart/credentials', () => ({
|
||||
getStalwartCredentials: async () => (signedIn ? { ...claimed, serverUrl: 'https://mail.example.org', authHeader: 'x' } : null),
|
||||
}));
|
||||
vi.mock('@/lib/admin/config-manager', () => ({
|
||||
configManager: { ensureLoaded: async () => {}, getPolicy: () => ({ features: { pluginsEnabled } }) },
|
||||
configManager: { ensureLoaded: async () => {}, get: () => undefined, getPolicy: () => ({ features: { pluginsEnabled } }) },
|
||||
}));
|
||||
vi.mock('@/lib/security/same-origin', async () => {
|
||||
const { NextResponse } = await import('next/server');
|
||||
|
||||
Reference in New Issue
Block a user