Skip to content

Commit

Permalink
test: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Aug 13, 2024
1 parent 2ad86d4 commit 6d3b40d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
6 changes: 2 additions & 4 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {},
Expand Down
4 changes: 2 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const config: Config.InitialOptions = {
...defaultConfig,
setupFilesAfterEnv: [
...(defaultConfig.setupFilesAfterEnv || []),
'./tests/setupFilesAfterEnv.ts'
'./tests/setupFilesAfterEnv.ts',
],
}
};

export default config;
5 changes: 3 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ const Footer: React.FC<FooterProps> = ({
) => {
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 (
<Column
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
"rc-footer": ["src/index.tsx"]
}
},
"include": [".dumi/**/*", ".dumirc.ts", "src", "tests", "docs/examples"],
"include": [".dumi/**/*", ".dumirc.ts", "src", "tests", "docs/examples"]
}

0 comments on commit 6d3b40d

Please sign in to comment.