Skip to content

Commit e41d7bb

Browse files
committed
remove toBeDefined from test
1 parent 26ca763 commit e41d7bb

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2590,4 +2590,4 @@ export type MethodReturn<T extends keyof TelegramBot> = T extends unknown
25902590
: never
25912591
: never;
25922592

2593-
export * from './types';
2593+
export * from './types';

tests/index.test.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'dotenv/config';
22
import { createReadStream } from 'fs';
33
import { readFile } from 'fs/promises';
4-
import { FileOptions, TelegramBot, ForumTopic, File, User, StickerSet, Update } from '../src';
4+
import { FileOptions, TelegramBot, ForumTopic, File, User, StickerSet, Update } from '../src';
55
import { TelegramError } from '../src/errors';
66

77
const TOKEN = process.env.TEST_TELEGRAM_TOKEN as string;
@@ -163,10 +163,6 @@ describe('.getMe()', () => {
163163
});
164164

165165
describe('.logOut()', () => {
166-
test('should have a logOut method', () => {
167-
expect(bot.logOut).toBeDefined();
168-
});
169-
170166
test('should log out the bot', async () => {
171167
await expect(
172168
new TelegramBot({
@@ -177,10 +173,6 @@ describe('.logOut()', () => {
177173
});
178174

179175
describe('.close()', () => {
180-
test('should have a close method', () => {
181-
expect(bot.close).toBeDefined();
182-
});
183-
184176
test('should close the bot', async () => {
185177
await expect(
186178
new TelegramBot({

0 commit comments

Comments
 (0)