Skip to content

Commit b0c3c62

Browse files
committed
fix
1 parent 0cc60b8 commit b0c3c62

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

e2e/cases/css/import-common-css/index.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ import { expect, getFileContent, rspackTest } from '@e2e/helper';
22

33
rspackTest('should compile common CSS import correctly', async ({ build }) => {
44
const rsbuild = await build();
5-
65
const files = rsbuild.getDistFiles();
7-
const cssContent = getFileContent(files, 'index.css');
8-
9-
expect(cssContent).toEqual(
10-
'html{min-height:100%}#a{color:red}#b{color:#00f}',
11-
);
6+
const indexCss = getFileContent(files, 'index.css');
7+
expect(indexCss).toEqual('html{min-height:100%}#a{color:red}#b{color:#00f}');
128
});

0 commit comments

Comments
 (0)