Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrijs-pavlovs-dev committed Dec 18, 2023
1 parent 832f85c commit 08779ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/backend/src/services/bot.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('BotService', () => {
describe('start method', () => {
it('should save a new user and send a welcome message', async () => {
const mockCtx = {
from: { id: 123, first_name: 'John', is_bot: false },
from: { id: '123', first_name: 'John', is_bot: false },
reply: jest.fn(),
} as unknown as Context;

Expand All @@ -57,7 +57,7 @@ describe('BotService', () => {

it('should handle errors', async () => {
const mockCtx = {
from: { id: 123, first_name: 'John', is_bot: false },
from: { id: '123', first_name: 'John', is_bot: false },
reply: jest.fn(),
} as unknown as Context;

Expand Down

0 comments on commit 08779ca

Please sign in to comment.