提交 0a690dba 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

fix unit test typing bug

上级 2239bfc7
......@@ -23,6 +23,7 @@
import test from 'blue-tape'
import sinon from 'sinon'
import { ContactPayload } from 'wechaty-puppet'
import { PuppetMock } from 'wechaty-puppet-mock'
import { Wechaty } from '../wechaty'
......@@ -44,7 +45,7 @@ test('findAll()', async t => {
await new Promise(r => setImmediate(r))
return {
name: EXPECTED_CONTACT_NAME,
}
} as ContactPayload
})
const contactList = await wechaty.Contact.findAll()
......
......@@ -23,7 +23,8 @@
import test from 'blue-tape'
import sinon from 'sinon'
import { PuppetMock } from 'wechaty-puppet-mock'
import { RoomPayload } from 'wechaty-puppet'
import { PuppetMock } from 'wechaty-puppet-mock'
import { Wechaty } from '../wechaty'
......@@ -44,7 +45,7 @@ test('findAll()', async t => {
await new Promise(r => setImmediate(r))
return {
topic: EXPECTED_ROOM_TOPIC,
}
} as RoomPayload
})
const roomList = await wechaty.Room.findAll()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册