Skip to content

Commit

Permalink
Fix scheduling test.
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmoy12c committed Aug 2, 2024
1 parent d7a510e commit c25cc45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/bot/bot.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,8 @@ describe('BotService', () => {
});
jest.spyOn(MockPrismaService.schedules, 'upsert').mockImplementation((filter) => {
expect(filter.where.id).toBeDefined();
expect(filter.create.name).toBeDefined();
delete filter.create.name;
expect(filter.create).toStrictEqual({
authToken: 'mockToken',
botId: 'mockBotId',
Expand Down

0 comments on commit c25cc45

Please sign in to comment.