Skip to content

Commit d294a66

Browse files
committed
chore: add each-index-non-null snapshot
1 parent 084e313 commit d294a66

File tree

1 file changed

+19
-0
lines changed
  • packages/svelte/tests/snapshot/samples/each-index-non-null/_expected/client-functional

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import 'svelte/internal/disclose-version';
2+
import 'svelte/internal/flags/legacy';
3+
import * as $ from 'svelte/internal/client';
4+
5+
var root_1 = $.template_fn([{ e: 'p' }]);
6+
7+
export default function Each_index_non_null($$anchor) {
8+
var fragment = $.comment();
9+
var node = $.first_child(fragment);
10+
11+
$.each(node, 0, () => Array(10), $.index, ($$anchor, $$item, i) => {
12+
var p = root_1();
13+
14+
p.textContent = `index: ${i}`;
15+
$.append($$anchor, p);
16+
});
17+
18+
$.append($$anchor, fragment);
19+
}

0 commit comments

Comments
 (0)