Skip to content

Commit eef25ae

Browse files
Simplify PostCSS integration test
1 parent f8ebd54 commit eef25ae

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

integrations/postcss/url-rewriting.test.ts

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { binary, css, js, json, svg, test } from '../utils'
2-
3-
const SIMPLE_IMAGE = `iVBORw0KGgoAAAANSUhEUgAAADAAAAAlAQAAAAAsYlcCAAAACklEQVR4AWMYBQABAwABRUEDtQAAAABJRU5ErkJggg==`
1+
import { css, js, json, test } from '../utils'
42

53
test.debug(
64
'can rewrite urls in production builds',
@@ -50,23 +48,6 @@ test.debug(
5048
background-image: url('./vector-2.svg');
5149
}
5250
`,
53-
'resources/image.png': binary(SIMPLE_IMAGE),
54-
'resources/vector.svg': svg`
55-
<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg">
56-
<rect width="100%" height="100%" fill="red" />
57-
<circle cx="200" cy="100" r="80" fill="green" />
58-
<rect width="100%" height="100%" fill="red" />
59-
<circle cx="200" cy="100" r="80" fill="green" />
60-
</svg>
61-
`,
62-
'src/dir-1/dir-2/dir-3/vector-2.svg': svg`
63-
<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg">
64-
<rect width="100%" height="100%" fill="blue" />
65-
<circle cx="200" cy="100" r="80" fill="green" />
66-
<rect width="100%" height="100%" fill="red" />
67-
<circle cx="200" cy="100" r="80" fill="pink" />
68-
</svg>
69-
`,
7051
},
7152
},
7253
async ({ fs, exec, expect }) => {

0 commit comments

Comments
 (0)