From 52dc6038da931b1b71e873ed700b926d73fa6830 Mon Sep 17 00:00:00 2001 From: XiaoDaiGua-Ray <443547225@qq.com> Date: Fri, 17 May 2024 15:30:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DuseTheme.spec.ts?= =?UTF-8?q?=E5=8D=95=E6=B5=8B=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __test__/hooks/useTheme.spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/__test__/hooks/useTheme.spec.ts b/__test__/hooks/useTheme.spec.ts index 31336ccd..b770a7f5 100644 --- a/__test__/hooks/useTheme.spec.ts +++ b/__test__/hooks/useTheme.spec.ts @@ -31,16 +31,16 @@ describe('useTheme', async () => { it('should return current theme', () => { darkTheme() - const { theme: darkTheme, themeLabel: darkThemeLabel } = getAppTheme() + const { theme: _darkTheme, themeLabel: _darkThemeLabel } = getAppTheme() - expect(darkTheme).toBe(true) - expect(darkThemeLabel).toBe('暗色') + expect(_darkTheme).toBe(true) + expect(_darkThemeLabel).toBe('Dark') lightTheme() - const { theme: lightTheme, themeLabel: lightThemeLabel } = getAppTheme() + const { theme: __lightTheme, themeLabel: __lightThemeLabel } = getAppTheme() - expect(lightTheme).toBe(false) - expect(lightThemeLabel).toBe('明亮') + expect(__lightTheme).toBe(false) + expect(__lightThemeLabel).toBe('Light') }) })