Skip to content

Commit

Permalink
Simplify PostCSS integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-spiess committed Mar 6, 2025
1 parent f8ebd54 commit e989430
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions integrations/postcss/url-rewriting.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { binary, css, js, json, svg, test } from '../utils'
import { css, js, json, test } from '../utils'

const SIMPLE_IMAGE = `iVBORw0KGgoAAAANSUhEUgAAADAAAAAlAQAAAAAsYlcCAAAACklEQVR4AWMYBQABAwABRUEDtQAAAABJRU5ErkJggg==`

test.debug(
test(
'can rewrite urls in production builds',
{
fs: {
Expand Down Expand Up @@ -50,23 +48,6 @@ test.debug(
background-image: url('./vector-2.svg');
}
`,
'resources/image.png': binary(SIMPLE_IMAGE),
'resources/vector.svg': svg`
<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg">
<rect width="100%" height="100%" fill="red" />
<circle cx="200" cy="100" r="80" fill="green" />
<rect width="100%" height="100%" fill="red" />
<circle cx="200" cy="100" r="80" fill="green" />
</svg>
`,
'src/dir-1/dir-2/dir-3/vector-2.svg': svg`
<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg">
<rect width="100%" height="100%" fill="blue" />
<circle cx="200" cy="100" r="80" fill="green" />
<rect width="100%" height="100%" fill="red" />
<circle cx="200" cy="100" r="80" fill="pink" />
</svg>
`,
},
},
async ({ fs, exec, expect }) => {
Expand Down

0 comments on commit e989430

Please sign in to comment.