From 293125c89476ddc5ed4d3c7378f24e955b1030fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A3=8A?= <1633537611@qq.com> Date: Wed, 18 Dec 2024 16:32:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=8E=B7=E5=8F=96=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E4=BF=A1=E6=81=AF=E8=87=AA=E5=8A=A8=E5=8C=96=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../API/get-video-info/get-video-info.test.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/pages/API/get-video-info/get-video-info.test.js b/pages/API/get-video-info/get-video-info.test.js index 3e60de34..b3e691a9 100644 --- a/pages/API/get-video-info/get-video-info.test.js +++ b/pages/API/get-video-info/get-video-info.test.js @@ -33,16 +33,15 @@ describe('API-getVideoInfo', () => { const infos = process.env.uniTestPlatformInfo.split(' '); const version = parseInt(infos[infos.length - 1]); if (process.env.uniTestPlatformInfo.startsWith('android') && version > 5) { - expect(await page.data('videoInfoForTest')).toEqual({ - orientation: 'up', - type: 'video/mp4', - duration: 10, - size: 183, - width: 1280, - height: 720, - fps: 31, - bitrate: 149 - }); + var videoInfo = await page.data('videoInfoForTest') + expect(videoInfo.orientation).toEqual("up") + expect(videoInfo.type).toEqual("video/mp4") + expect(videoInfo.duration).toEqual(10) + expect(videoInfo.size).toEqual(183) + expect(videoInfo.width).toEqual(1280) + expect(videoInfo.height).toEqual(720) + expect(videoInfo.fps == 30 || videoInfo.fps == 31).toEqual(true) + expect(videoInfo.bitrate).toEqual(149) } }); }); -- GitLab