From 6d3b40d37bc71186003cb2ec947c9ac897f01223 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 13 Aug 2024 23:14:05 +0800 Subject: [PATCH] test: fix ci --- .dumirc.ts | 6 ++---- jest.config.ts | 4 ++-- src/index.tsx | 5 +++-- tsconfig.json | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.dumirc.ts b/.dumirc.ts index 4dacaee..6c3e198 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -4,12 +4,10 @@ const basePath = process.env.GH_PAGES ? '/footer/' : '/'; const publicPath = process.env.GH_PAGES ? '/footer/' : '/'; export default defineConfig({ - favicons: [ - 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4', - ], + favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'], themeConfig: { name: 'Footer', - logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4' + logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4', }, outputPath: '.doc', exportStatic: {}, diff --git a/jest.config.ts b/jest.config.ts index c99fed4..a71eebc 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -8,8 +8,8 @@ const config: Config.InitialOptions = { ...defaultConfig, setupFilesAfterEnv: [ ...(defaultConfig.setupFilesAfterEnv || []), - './tests/setupFilesAfterEnv.ts' + './tests/setupFilesAfterEnv.ts', ], -} +}; export default config; diff --git a/src/index.tsx b/src/index.tsx index 92a191e..003ed40 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -63,8 +63,9 @@ const Footer: React.FC = ({ ) => { const styleObject = { ...columnStyle } as React.CSSProperties; if (shouldWrap) { - styleObject.flex = `0 0 ${100 / (maxColumnsPerRow! + 1) + - 0.1}%`; + styleObject.flex = `0 0 ${ + 100 / (maxColumnsPerRow! + 1) + 0.1 + }%`; } return (