Skip to content

Commit

Permalink
User-service: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCwy committed Nov 13, 2023
1 parent 37de01f commit fa8dce8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions user-service/__tests__/app.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import request from 'supertest';
import { app } from '../src/app';
import { UserDb } from '../src/db/Users';
import { UserDb, UserDbTest } from '../src/db/Users';

beforeEach(async () => {
await UserDb.initializeUserDatabase();
await UserDbTest.initializeUserDatabase();
});

afterEach(async () => {
await UserDb.dropUserTable();
await UserDbTest.dropUserTable();
});

const password = 'Testpassword1@';
Expand Down
2 changes: 1 addition & 1 deletion user-service/__tests__/db/Users.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ beforeEach(async () => {
});

afterEach(async () => {
await UserDb.dropUserTable();
await UserDbTest.dropUserTable();
});

describe('User DB Unit test', () => {
Expand Down

0 comments on commit fa8dce8

Please sign in to comment.