You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
node-telegram-bot-api/test
GochoMugo 80a25c0e6e
[test] Place and update test options in mocha.opts file
9 years ago
..
data [test] FIX OUR TESTS 9 years ago
README.md [test] FIX OUR TESTS 9 years ago
mocha.opts [test] Place and update test options in mocha.opts file 9 years ago
telegram.js [test] Fix incorrect test cases 9 years ago
utils.js [test] FIX OUR TESTS 9 years ago

README.md

Running the tests:

# Token to be used
export TEST_TELEGRAM_TOKEN=<YOUR_BOT_TOKEN>

# 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>

# Run tests
npm run test