Skip to content

Commit

Permalink
fix: cba anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
sanriodev committed May 7, 2024
1 parent 84ee57c commit 7cdaead
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 33 deletions.
30 changes: 0 additions & 30 deletions src/modules/event/services/interaction.spec.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ describe('SomeoneOnceSaidService', () => {
describe('getRandomQuote', () => {
it('should return a random quote', async () => {
(modelMock as any).findOne = jest.fn((p) => ({
skip: () => ({
limit: () => mockQuoteDocument,
}),
skip: jest.fn(() => ({
limit: jest.fn(() => mockQuoteDocument),
})),
}));
const countSpy = jest.spyOn(modelMock, 'countDocuments');
const findOneSpy = jest.spyOn(modelMock, 'findOne');
Expand Down

0 comments on commit 7cdaead

Please sign in to comment.