|
|
@@ -10,7 +10,6 @@ vi.mock('@/server/middleware/auth.middleware');
|
|
|
|
|
|
describe('File API Integration Tests', () => {
|
|
|
let client: ReturnType<typeof testClient<typeof fileApiRoutes>>['api']['v1'];
|
|
|
- let mockDataSource: DataSource;
|
|
|
const user1 = {
|
|
|
id: 1,
|
|
|
username: 'testuser',
|
|
|
@@ -36,8 +35,6 @@ describe('File API Integration Tests', () => {
|
|
|
beforeEach(async () => {
|
|
|
vi.clearAllMocks();
|
|
|
|
|
|
- mockDataSource = {} as DataSource;
|
|
|
-
|
|
|
// Mock auth middleware to bypass authentication
|
|
|
vi.mocked(authMiddleware).mockImplementation(async (_, next) => {
|
|
|
_.set('user', user1)
|