Skip to content

Commit

Permalink
fix: await on db.flush
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorv-mishra committed Aug 11, 2022
1 parent 6ccf59d commit 8b4c8b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/models/Revision.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const db = getTestDatabase();

afterAll(db.disconnect);

beforeEach(() => {
db.flush();
beforeEach(async () => {
await db.flush();
jest.resetAllMocks();
});

Expand Down

0 comments on commit 8b4c8b1

Please sign in to comment.