From c131d2229da8541f4685999bd1b46194ef440e50 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Mon, 4 Mar 2024 14:26:06 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=BE=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../API/unicloud-import-object/unicloud-import-object.test.js | 4 ++-- pages/API/unicloud-import-object/unicloud-import-object.uvue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/API/unicloud-import-object/unicloud-import-object.test.js b/pages/API/unicloud-import-object/unicloud-import-object.test.js index b9caa871..59fcece3 100644 --- a/pages/API/unicloud-import-object/unicloud-import-object.test.js +++ b/pages/API/unicloud-import-object/unicloud-import-object.test.js @@ -21,14 +21,14 @@ describe('unicloud-import-object', () => { returnTodoTitle, returnTodoContent, failErrCode, - failWithNumberErrCode, + failNumberErrCode, successErrCode, } = await page.data() expect(returnTodoTitle).toBe(todoTitle) expect(returnTodoContent).toBe(todoContent) expect(failErrCode).toBe('TEST_ERROR_CODE') - expect(failWithNumberErrCode).toBe(-1) + expect(failNumberErrCode).toBe(-1) expect(successErrCode).toBe(0) }) diff --git a/pages/API/unicloud-import-object/unicloud-import-object.uvue b/pages/API/unicloud-import-object/unicloud-import-object.uvue index e2687221..cf4a4dcc 100644 --- a/pages/API/unicloud-import-object/unicloud-import-object.uvue +++ b/pages/API/unicloud-import-object/unicloud-import-object.uvue @@ -37,7 +37,7 @@ returnTodoTitle: '', returnTodoContent: '', failErrCode: '', - failWithNumberErrCode: 0, + failNumberErrCode: 0, successErrCode: -1, isUniTest: false } @@ -117,7 +117,7 @@ console.log('todo.fail: ', res); }).catch((err : any | null) => { const error = err as UniCloudError - this.failWithNumberErrCode = error.errCode as number + this.failNumberErrCode = error.errCode as number console.error(error) if (this.isUniTest) { uni.showToast({ -- GitLab