From 68214c04bf89754db468bfca017cbcee4220e87a Mon Sep 17 00:00:00 2001 From: mahaifeng Date: Wed, 22 May 2024 12:54:22 +0800 Subject: [PATCH] =?UTF-8?q?[file]=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../get-file-system-manager/get-file-system-manager.test.js | 4 ++-- pages/API/request-payment/reqeust-payment.test.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/API/get-file-system-manager/get-file-system-manager.test.js b/pages/API/get-file-system-manager/get-file-system-manager.test.js index 45ccdedf..09024731 100644 --- a/pages/API/get-file-system-manager/get-file-system-manager.test.js +++ b/pages/API/get-file-system-manager/get-file-system-manager.test.js @@ -97,10 +97,10 @@ describe('ExtApi-FileManagerTest', () => { let lastFailError = await getData('lastFailError') expect(lastFailError.errCode).toEqual(1300002) - expect(lastFailError.errMsg).toEqual('no such file or directory:unifile://usr/a/b/c') + expect(lastFailError.errMsg).toEqual('no such file or directory') let lastCompleteError = await getData('lastCompleteError') expect(lastCompleteError.errCode).toEqual(1300002) - expect(lastCompleteError.errMsg).toEqual('no such file or directory:unifile://usr/a/b/c') + expect(lastCompleteError.errMsg).toEqual('no such file or directory') // 测试 recursive = true 期望文件夹创建成功 diff --git a/pages/API/request-payment/reqeust-payment.test.js b/pages/API/request-payment/reqeust-payment.test.js index 2c4fd3b2..1e314a31 100644 --- a/pages/API/request-payment/reqeust-payment.test.js +++ b/pages/API/request-payment/reqeust-payment.test.js @@ -18,8 +18,8 @@ describe("payment", () => { page = await program.reLaunch(PAGE_PATH) await page.waitFor(600) }); - //支付失败700711 - it("errorcode700711", async () => { + //支付失败701100 + it("errorcode701100", async () => { let orderInfo = "service=\"mobile.securitypay.pay\"&partner=\"2088801273866834\"&_input_charset=\"UTF-8\"&out_trade_no=\"20240229115452\"&subject=\"DCloud项目捐赠\"&payment_type=\"1\"&seller_id=\"payservice@dcloud.io\"&total_fee=\"0.01\"&body=\"DCloud致力于打造HTML5最好的移动开发工具,包括终端的Runtime、云端的服务和IDE,同时提供各项配套的开发者服务。\"&it_b_pay=\"1d\"¬ify_url=\"http%3A%2F%2Fdemo.dcloud.net.cn%2Fpayment%2Falipay%2Fnotify.php\"&show_url=\"http%3A%2F%2Fwww.dcloud.io%2Fhelloh5%2F\"&sign=\"diZdkTX2iIP1oZh25UCGqx%2BpkViqAN8xdvMNSJF79aq0JiunX2mtr%2BbNlDsP0YL5x85KjULsqx%2Fq%2B5wij6eMoBVeJ%2BHhyjkwt0PYuwntroJ2Ho8bdUVEybBgOjy240NbCUtKmZzNRQAGsmLztKWzsg1srsQ8Se3Qi8KGDaOhqBs%3D\"&sign_type=\"RSA\""; await page.setData({ @@ -29,6 +29,6 @@ describe("payment", () => { await page.waitFor(async () => { return await page.data('complete') === true; }); - expect((await page.data())['errorCode']).toEqual(700711) + expect((await page.data())['errorCode']).toEqual(701100) }); }); -- GitLab