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 3e60de341798baed3ef09050faacfb10135f6929..b3e691a96a94ad46b893411b8564a1550f4b79c7 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) } }); });