From d126a8e9807bd6e1a724f6ac472cfbdb9432d6d5 Mon Sep 17 00:00:00 2001 From: anne-lxm <1076217653@qq.com> Date: Thu, 16 Dec 2021 17:01:44 +0800 Subject: [PATCH] fix:jest bindmobile --- .gitignore | 7 ++++++- pages/ucenter/userinfo/bind-mobile/bind-mobile.test.js | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 78df1355..c42bb5c8 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,9 @@ unpackage/ node_modules .DS_Store uni_modules_tools/copy -package-lock.json \ No newline at end of file +package-lock.json +/uni_modules\uni-config-center\uniCloud\cloudfunctions\common\uni-config-center\uni-id\config.json +/manifest.json +/env.js +/jest.config.js +/vue.config.js diff --git a/pages/ucenter/userinfo/bind-mobile/bind-mobile.test.js b/pages/ucenter/userinfo/bind-mobile/bind-mobile.test.js index 62e134b1..da82abac 100644 --- a/pages/ucenter/userinfo/bind-mobile/bind-mobile.test.js +++ b/pages/ucenter/userinfo/bind-mobile/bind-mobile.test.js @@ -50,7 +50,8 @@ describe('pages/ucenter/userinfo/bind-mobile/bind-mobile.vue', () => { await program.redirectTo('/pages/ucenter/login-page/pwd-login/pwd-login') break; case 60101: - expect(submitRes.msg).toBe("此手机号已绑定" || "手机号 is already bound") + // expect(submitRes.msg).toBe("此手机号已绑定" || "手机号 is already bound") + expect(submitRes.errCode).toBe("uni-id-account-already-bound") break; default: break; -- GitLab