From cd68ab2aef8c306fa5cc8869c6a9528a06ad0252 Mon Sep 17 00:00:00 2001 From: arvinxx Date: Mon, 21 Mar 2022 00:48:34 +0800 Subject: [PATCH] =?UTF-8?q?:white=5Fcheck=5Fmark:=20test:=20=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=E5=8D=95=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Footer/index.test.tsx | 28 ++++--------------- .../src/components/Header/index.test.tsx | 8 ++---- .../src/components/WechatLogin/index.test.tsx | 20 +++---------- .../user-panel/src/locales/en-US/login.ts | 7 ++--- packages/user-panel/src/login/index.test.tsx | 4 +++ packages/user-panel/tests/index.test.tsx | 3 ++ 6 files changed, 22 insertions(+), 48 deletions(-) diff --git a/packages/user-panel/src/components/Footer/index.test.tsx b/packages/user-panel/src/components/Footer/index.test.tsx index 98f21c2b..b9d4f1a0 100644 --- a/packages/user-panel/src/components/Footer/index.test.tsx +++ b/packages/user-panel/src/components/Footer/index.test.tsx @@ -2,41 +2,25 @@ import React from 'react'; import { render } from '@testing-library/react'; import { Footer } from './index'; -import { IntlProvider } from '../Intl'; +import '../../locales'; describe('Footer 组件', () => { it('登录页脚', () => { - const { container } = render( - -