Skip to content

Commit

Permalink
chore: rm test
Browse files Browse the repository at this point in the history
  • Loading branch information
MadCcc committed Jan 30, 2024
1 parent dc73fe3 commit 5613c59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions scripts/visual-regression/build.ts
Expand Up @@ -273,11 +273,11 @@ async function boot() {
// compare cssinjs and css-var png from pr
// to the same cssinjs png in `master` branch
const cssInJsImgNames = baseImgFileList
.filter((i) => !i.endsWith('.css-var.png') && !i.endsWith('.css-var-without-hash.png'))
.filter((i) => !i.endsWith('.css-var.png'))
.map((n) => path.basename(n, path.extname(n)));

for (const basename of cssInJsImgNames) {
for (const extname of ['.png', '.css-var.png', '.css-var-without-hash.png']) {
for (const extname of ['.png', '.css-var.png']) {
// baseImg always use cssinjs png
const baseImgName = `${basename}.png`;
const baseImgPath = path.join(baseImgSourceDir, baseImgName);
Expand Down
9 changes: 0 additions & 9 deletions tests/shared/imageTest.tsx
Expand Up @@ -236,15 +236,6 @@ export default function imageTest(
<ConfigProvider theme={{ algorithm, cssVar: true }}>{component}</ConfigProvider>
</div>,
);
test(
`[CSS Var without Hash] component image screenshot should correct ${key}`,
`.${key}.css-var-without-hash`,
<div style={{ background: key === 'dark' ? '#000' : '', padding: `24px 12px` }} key={key}>
<ConfigProvider theme={{ algorithm, cssVar: true, hashed: false }}>
{component}
</ConfigProvider>
</div>,
);
});
}

Expand Down

0 comments on commit 5613c59

Please sign in to comment.