Skip to content

Commit 0f97fc5

Browse files
committed
test: partially revert #2053 test changes
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.
1 parent d7071bb commit 0f97fc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: test/template.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ test('transform relative URLs and respects resolve alias', async () => {
5656
const style = normalizeNewline(
5757
window.document.querySelector('style')!.textContent!
5858
)
59-
expect(style).toContain('html { background-image: url(logo.cab72b.png); }')
60-
expect(style).toContain('body { background-image: url(logo.cab72b.png); }')
59+
expect(style).toContain('html { background-image: url(logo.cab72b.png);\n}')
60+
expect(style).toContain('body { background-image: url(logo.cab72b.png);\n}')
6161
})
6262

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

0 commit comments

Comments
 (0)