From 10ef86c53da742d234b143f5c102238384eb75d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Huan=20LI=20=28=E6=9D=8E=E5=8D=93=E6=A1=93=29?= Date: Sun, 12 Jul 2020 21:54:24 +0800 Subject: [PATCH] check typed-emitter in pack testing --- tests/fixtures/smoke-testing.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/fixtures/smoke-testing.ts b/tests/fixtures/smoke-testing.ts index eb09da28..eff6c877 100644 --- a/tests/fixtures/smoke-testing.ts +++ b/tests/fixtures/smoke-testing.ts @@ -59,9 +59,10 @@ async function main () { await Promise.all( botList.map(bot => bot.start()), ) - botList.forEach( - bot => console.info(`Wechaty v${bot.version()} smoking test passed.`), - ) + for (const bot of botList) { + console.info(`Wechaty v${bot.version()} smoking test passed.`) + console.info('listenerCount(message) is', bot.listenerCount('message')) + } } catch (e) { console.error(e) // Error! -- GitLab