From 0cdaec5b5d08be61075f0dd9fd26f8f5b123faa0 Mon Sep 17 00:00:00 2001 From: taohebin Date: Fri, 17 May 2024 12:20:16 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=20getappbaseinfo=E3=80=81getsysteminfo?= =?UTF-8?q?=20=E5=A2=9E=E5=8A=A0appTheme=E5=AD=97=E6=AE=B5=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/get-app-base-info/get-app-base-info.test.js | 3 +++ pages/API/get-system-info/get-system-info.test.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/pages/API/get-app-base-info/get-app-base-info.test.js b/pages/API/get-app-base-info/get-app-base-info.test.js index a47c21f6..cbd9e18b 100644 --- a/pages/API/get-app-base-info/get-app-base-info.test.js +++ b/pages/API/get-app-base-info/get-app-base-info.test.js @@ -41,6 +41,9 @@ describe('ExtApi-GetAppBaseInfo', () => { if (booleanProperties.indexOf(key) != -1) { expect(value).not.toBeNull(); expect(typeof value).toBe('boolean'); + } + if (key == "appTheme") { + expect(['light', 'dark', 'auto']).toContain(value); } } }); diff --git a/pages/API/get-system-info/get-system-info.test.js b/pages/API/get-system-info/get-system-info.test.js index 888aa8cd..f8b2f9d3 100644 --- a/pages/API/get-system-info/get-system-info.test.js +++ b/pages/API/get-system-info/get-system-info.test.js @@ -54,6 +54,9 @@ describe('ExtApi-GetSystemInfo', () => { if (key == "osTheme") { expect(['light', 'dark']).toContain(value); } + if (key == "appTheme") { + expect(['light', 'dark', 'auto']).toContain(value); + } } }); it('Check GetSystemInfoSync required properties', async () => { -- GitLab