Skip to content

Commit 96ff125

Browse files
authored
chore: fix error boundary test (#16368)
1 parent be08185 commit 96ff125

File tree

1 file changed

+1
-7
lines changed
  • packages/svelte/tests/runtime-runes/samples/error-boundary-9

1 file changed

+1
-7
lines changed

packages/svelte/tests/runtime-runes/samples/error-boundary-9/_config.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
import { test } from '../../test';
22

33
export default test({
4-
test({ assert, target, logs, warnings, variant }) {
5-
if (variant === 'hydrate') {
6-
assert.deepEqual(warnings, [
7-
'Hydration failed because the initial UI does not match what was rendered on the server'
8-
]);
9-
}
10-
4+
test({ assert, target, logs }) {
115
assert.deepEqual(logs, ['error caught']);
126
assert.htmlEqual(target.innerHTML, `<div>Error!</div><button>Retry</button>`);
137
}

0 commit comments

Comments
 (0)