We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6c9f44 commit 7e2029aCopy full SHA for 7e2029a
test.js
@@ -11,7 +11,8 @@ const bot = new Telegraf('ABCD:1234567890')
11
const test = new TelegrafTest({
12
url: `http://127.0.0.1:${port}/${secretPath}`
13
})
14
-test.startServer()
+
15
+const express = test.startServer()
16
17
bot.hears(/ping/i, ctx => {
18
ctx.reply('Pong!')
@@ -187,4 +188,8 @@ describe('Telegraf Test', () => {
187
188
it('send request / via POST', async () => {
189
await axios.post('http://127.0.0.1:2000/')
190
191
192
+ it('Has express object of Start Server', async () => {
193
+ assert.strictEqual(typeof express === 'object', true)
194
+ })
195
0 commit comments