Skip to content

Commit 7e2029a

Browse files
committed
feat(test): Start server return object
1 parent a6c9f44 commit 7e2029a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ const bot = new Telegraf('ABCD:1234567890')
1111
const test = new TelegrafTest({
1212
url: `http://127.0.0.1:${port}/${secretPath}`
1313
})
14-
test.startServer()
14+
15+
const express = test.startServer()
1516

1617
bot.hears(/ping/i, ctx => {
1718
ctx.reply('Pong!')
@@ -187,4 +188,8 @@ describe('Telegraf Test', () => {
187188
it('send request / via POST', async () => {
188189
await axios.post('http://127.0.0.1:2000/')
189190
})
191+
192+
it('Has express object of Start Server', async () => {
193+
assert.strictEqual(typeof express === 'object', true)
194+
})
190195
})

0 commit comments

Comments
 (0)