提交 78555572 编写于 作者: 雪洛's avatar 雪洛

test: 增加instanceof UniCloudError测试例

上级 0bb4df65
......@@ -10,6 +10,11 @@ describe('unicloud-call-function', () => {
})
})
it('UniCloudError', async () => {
const result = await page.callMethod('jest_UniCloudError')
expect(result).toBe(false)
})
it('callFunction', async () => {
await page.callMethod('callFunction')
const {
......
......@@ -99,6 +99,9 @@
uni.hideLoading()
this.notify(error.errMsg, '错误')
})
},
jest_UniCloudError() {
return new Error() instanceof UniCloudError
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册