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 b9caa87141b055c6933cffdcb96b6c240af590e6..59fcece3b56b315a9245d78c14074a0e3a331a8c 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 e26872212480b31c74a99ce95a6d13533e9a0211..cf4a4dccd95f85b89af7b2758ced0644c0552b8c 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({