From a0f1fb4b3d0bf92ca171bd1b7065f4b20cb39258 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 10 Jul 2024 20:45:53 -0400 Subject: [PATCH] fix test --- .../tests/hydration/samples/raw-mismatch-static/_config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/svelte/tests/hydration/samples/raw-mismatch-static/_config.js b/packages/svelte/tests/hydration/samples/raw-mismatch-static/_config.js index 474933fc70..e807deb199 100644 --- a/packages/svelte/tests/hydration/samples/raw-mismatch-static/_config.js +++ b/packages/svelte/tests/hydration/samples/raw-mismatch-static/_config.js @@ -7,5 +7,9 @@ export default test({ // (like {@html browser ? 'foo' : 'bar'} which is then different between client and server. // Also see https://github.com/sveltejs/svelte/issues/8683 where this happened for Svelte 4. assert.htmlEqual(target.innerHTML, 'Server'); - } + }, + + errors: [ + 'The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value' + ] });