Skip to content

Commit

Permalink
fix: add timeout to deck tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanaelAma committed Jul 5, 2024
1 parent 1996fbc commit 6a1d941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/deck.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ describe('Testing decks with auth', () => {
authToken = cookieHeader.match(tokenRegex)![1]; // needs to be non-null skipcq: JS-0339

(mongoose as mongoose.Mongoose).connect = jest.fn();
});
}, 10000);
afterEach(async () => {
await decks.deleteMany({});
});
}, 10000);
describe('Testing getAllDecks', () => {
describe('[GET] /deck/all', () => {
it('response statusCode 200', () => {
Expand Down

0 comments on commit 6a1d941

Please sign in to comment.