diff --git a/src/modules/event/services/interaction.spec.ts b/src/modules/event/services/interaction.spec.ts deleted file mode 100644 index 622c56d..0000000 --- a/src/modules/event/services/interaction.spec.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { Test, TestingModule } from '@nestjs/testing'; -import { Interaction } from './interaction'; -import { CommandService } from '../../command/command.service'; -import { PollService } from '../../models/poll/service/poll.service'; - -describe('Interaction', () => { - let service: Interaction; - - beforeEach(async () => { - const module: TestingModule = await Test.createTestingModule({ - providers: [ - Interaction, - { - provide: CommandService, - useValue: {}, - }, - { - provide: PollService, - useValue: {}, - }, - ], - }).compile(); - - service = module.get(Interaction); - }); - - it('should be defined', () => { - expect(service).toBeDefined(); - }); -}); diff --git a/src/modules/models/someone-once-said/service/someone-once-said.service.spec.ts b/src/modules/models/someone-once-said/service/someone-once-said.service.spec.ts index 553d060..3bc98dd 100644 --- a/src/modules/models/someone-once-said/service/someone-once-said.service.spec.ts +++ b/src/modules/models/someone-once-said/service/someone-once-said.service.spec.ts @@ -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');