more refactor
Some checks failed
Deploy to Test Environment / deploy-to-test (push) Has been cancelled
Some checks failed
Deploy to Test Environment / deploy-to-test (push) Has been cancelled
This commit is contained in:
@@ -105,7 +105,7 @@ vi.mock('./passport.routes', () => ({
|
||||
import adminRouter from './admin.routes';
|
||||
|
||||
describe('Admin Content Management Routes (/api/admin)', () => {
|
||||
const adminUser = createMockUserProfile({ role: 'admin', user_id: 'admin-user-id' });
|
||||
const adminUser = createMockUserProfile({ role: 'admin', user: { user_id: 'admin-user-id', email: 'admin@test.com' } });
|
||||
// Create a single app instance with an admin user for all tests in this suite.
|
||||
const app = createTestApp({ router: adminRouter, basePath: '/api/admin', authenticatedUser: adminUser });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user