From c0655c01d2b3b7a76d78de5664a025704a668964 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Sat, 23 Nov 2024 11:43:34 +0800 Subject: [PATCH] =?UTF-8?q?test:=20saveVideoToPhotosAlbum=20=E8=A7=84?= =?UTF-8?q?=E9=81=BF=E5=B0=8F=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../save-video-to-photos-album.test.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/API/save-video-to-photos-album/save-video-to-photos-album.test.js b/pages/API/save-video-to-photos-album/save-video-to-photos-album.test.js index 69f46b20..fe6134bd 100644 --- a/pages/API/save-video-to-photos-album/save-video-to-photos-album.test.js +++ b/pages/API/save-video-to-photos-album/save-video-to-photos-album.test.js @@ -1,6 +1,10 @@ -// uni-app自动化测试教程: https://uniapp.dcloud.net.cn/worktile/auto/hbuilderx-extension/ +const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase() +const isIos = platformInfo.startsWith('ios') +const isWeb = platformInfo.startsWith('web') +const isMp = platformInfo.startsWith('mp') + describe('API-saveVideoToPhotosAlbum', () => { - if (process.env.uniTestPlatformInfo.startsWith('web') || process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios')) { + if (isIos || isWeb || isMp) { it('pass', async () => { expect(1).toBe(1); }); -- GitLab