2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-29 05:17:41 +00:00

23 lines
553 B
Markdown
Raw Normal View History

2015-09-26 19:06:28 +02:00
Running the tests:
```bash
# Token to be used
2015-09-26 19:06:28 +02:00
export TEST_TELEGRAM_TOKEN=<YOUR_BOT_TOKEN>
2015-09-26 19:06:28 +02:00
# User Id which you want to send the messages.
export TEST_USER_ID=<USER_ID>
# Group Id which to use in some of the tests, e.g. for TelegramBot#getChat()
export TEST_GROUP_ID=<GROUP_ID>
# Game short name which to use in some of the tests, e.g. TelegramBot#sendGame()
export TEST_GAME_SHORT_NAME=<GAME_SHORT_NAME>
2017-01-11 18:18:24 +03:00
# Run ALL tests
2015-09-26 19:06:28 +02:00
npm run test
2017-01-11 18:18:24 +03:00
# Run individual tests
npm run eslint # static-analysis
npm run mocha # mocha tests
2015-09-26 19:06:28 +02:00
```