test(单元测试): 初始化测试用例

This commit is contained in:
ivinwu
2021-01-05 10:39:53 +08:00
parent 003ac7d322
commit d8fd05a871
24 changed files with 705 additions and 31 deletions

View File

@@ -0,0 +1,9 @@
import errorHandler from "../../src/module/errorHandler";
describe("show error modal", () => {
test("doError", () => {
wx.__mock__.modalIsShow = false;
errorHandler.doError("标题", "内容");
expect(wx.__mock__.modalIsShow).toBe(true);
})
})