Skip to content

Commit a64400d

Browse files
committed
fix: snapshots
1 parent 133a7ed commit a64400d

File tree

1 file changed

+1
-3
lines changed
  • packages/svelte/tests/snapshot/samples/skip-static-subtree/_expected/server

1 file changed

+1
-3
lines changed

packages/svelte/tests/snapshot/samples/skip-static-subtree/_expected/server/index.svelte.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ export default function Skip_static_subtree($$payload, $$props) {
55

66
$$payload.out += `<header><nav><a href="/">Home</a> <a href="/away">Away</a></nav></header> <main><h1>${$.escape(title)}</h1> <div class="static"><p>we don't need to traverse these nodes</p></div> <p>or</p> <p>these</p> <p>ones</p> ${$.html(content)} <p>these</p> <p>trailing</p> <p>nodes</p> <p>can</p> <p>be</p> <p>completely</p> <p>ignored</p></main> <cant-skip><custom-elements with="attributes"></custom-elements></cant-skip> <div><input autofocus/></div> <div><source muted/></div> <select><option value="a"${$.maybe_selected($$payload, 'a')}>`;
77

8-
const $$body = $.valueless_option($$payload);
9-
10-
$$body(() => {
8+
$.valueless_option($$payload)(() => {
119
$$payload.out += `a`;
1210
});
1311

0 commit comments

Comments
 (0)