Skip to content

Commit

Permalink
test(core): fix broken suit for ddc7329
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Sep 4, 2020
1 parent 2ec8bc7 commit 504b403
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/koishi-core/tests/server.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ describe('Server API', () => {
it('server.prepare', async () => {
const app = new App()
delete app.bots[0].selfId
expect(app.server.prepare({ selfId: BASE_SELF_ID + 1 })).to.be.undefined
await app.start()
expect(app.server.prepare({ selfId: BASE_SELF_ID + 1 })).to.be.ok
expect(app.bots[0].selfId).to.equal(BASE_SELF_ID + 1)
expect(app.server.prepare({ selfId: BASE_SELF_ID })).to.be.undefined
Expand Down

0 comments on commit 504b403

Please sign in to comment.