Skip to content

Commit

Permalink
test for vitejs#5599
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur- committed Nov 18, 2021
1 parent 04016df commit 3a7a1b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/playground/css/__tests__/css.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,11 @@ test('inlined', async () => {
expect(await getColor('.inlined')).toBe('black')
})

test('inlined-code', async () => {
// should resolve assets
expect(await page.textContent('.inlined-code')).not.toContain("__VITE__ASSET__");
})

test('minify css', async () => {
if (!isBuild) {
return
Expand Down
1 change: 1 addition & 0 deletions packages/playground/css/inlined.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.inlined {
color: green;
background: url('./ok.png');
}
Binary file added packages/playground/css/ok.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3a7a1b8

Please sign in to comment.