From 087104f7b30152af6f793f412aef7aff290904ce Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Thu, 19 Sep 2024 18:49:25 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E4=BF=AE=E5=A4=8D=20web=20=E7=AB=AF?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=20data=20=E5=BC=82=E5=B8=B8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/canvas/canvas.test.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pages/component/canvas/canvas.test.js b/pages/component/canvas/canvas.test.js index 5d489959..902cf3fb 100644 --- a/pages/component/canvas/canvas.test.js +++ b/pages/component/canvas/canvas.test.js @@ -10,11 +10,9 @@ beforeAll(async () => { describe('Canvas.uvue', () => { it('toBlob', async () => { - if (process.env.uniTestPlatformInfo.toLowerCase().startsWith('web')) { - const { - testToBlobResult, - testToDataURLResult - } = await page.data() + if (process.env.uniTestPlatformInfo.toLowerCase().startsWith('web')) { + const testToBlobResult = await page.data('testToBlobResult') + const testToDataURLResult = await page.data('testToDataURLResult') expect(testToBlobResult).toBe(true) expect(testToDataURLResult).toBe(true) -- GitLab