Skip to content

Commit

Permalink
test(plugin-common): add welcome test
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Mar 13, 2020
1 parent 48f518f commit 067d9c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/plugin-common/tests/welcome.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ test('basic support', async () => {
app.receive(shared)
await sleep(0)
app.shouldHaveLastRequest('send_group_msg', { groupId: 123, message: `欢迎新大佬 [CQ:at,qq=456]!` })

app.receive({ ...shared, userId: app.selfId })
await sleep(0)
app.shouldHaveNoRequests()
})

test('check assignee', async () => {
Expand Down

0 comments on commit 067d9c4

Please sign in to comment.