Skip to content

Commit

Permalink
test: partially revert #2053 test changes
Browse files Browse the repository at this point in the history
It is a side-effect of the style-post-loader that it adds a newline
after each CSS rule.
So now that style-post-loader isn't always skipped, the newlines must
be added back to the test expectations.
  • Loading branch information
sodatea committed Oct 31, 2023
1 parent d7071bb commit 0f97fc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/template.spec.ts
Expand Up @@ -56,8 +56,8 @@ test('transform relative URLs and respects resolve alias', async () => {
const style = normalizeNewline(
window.document.querySelector('style')!.textContent!
)
expect(style).toContain('html { background-image: url(logo.cab72b.png); }')
expect(style).toContain('body { background-image: url(logo.cab72b.png); }')
expect(style).toContain('html { background-image: url(logo.cab72b.png);\n}')
expect(style).toContain('body { background-image: url(logo.cab72b.png);\n}')
})

test('customizing template loaders', async () => {
Expand Down

0 comments on commit 0f97fc5

Please sign in to comment.