diff --git a/pages/component/canvas/canvas.test.js b/pages/component/canvas/canvas.test.js index 5d489959d1bc8054a8b843f879451ba642b4fc87..902cf3fbcfea83bd188d1226d1d02f02fe8eb8be 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)