From 0f97fc59fd2e10718e80b7f612e493c1314a7180 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Tue, 31 Oct 2023 14:08:27 +0800 Subject: [PATCH] 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. --- test/template.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/template.spec.ts b/test/template.spec.ts index 52fe64db..e46758a5 100644 --- a/test/template.spec.ts +++ b/test/template.spec.ts @@ -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 () => {