Skip to content

Commit 5f8413a

Browse files
committed
update snapshots
1 parent d29798c commit 5f8413a

File tree

20 files changed

+18
-76
lines changed

20 files changed

+18
-76
lines changed

packages/svelte/tests/snapshot/samples/bind-component-snippet/_expected/client/index.svelte.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
// index.svelte (Svelte VERSION)
2-
// Note: compiler output will change before 5.0 is released!
31
import "svelte/internal/disclose-version";
42
import * as $ from "svelte/internal/client";
53
import TextInput from './Child.svelte';
64

75
var root_1 = $.template(`Something`, 1);
86
var root = $.template(`<!> `, 1);
97

10-
function Bind_component_snippet($$anchor, $$props) {
8+
export default function Bind_component_snippet($$anchor, $$props) {
119
$.push($$props, true);
1210

1311
let value = $.source('');
@@ -36,6 +34,4 @@ function Bind_component_snippet($$anchor, $$props) {
3634
$.render_effect(() => $.set_text(text, ` value: ${$.stringify($.get(value))}`));
3735
$.append($$anchor, fragment_1);
3836
$.pop();
39-
}
40-
41-
export default Bind_component_snippet;
37+
}

packages/svelte/tests/snapshot/samples/bind-component-snippet/_expected/server/index.svelte.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// index.svelte (Svelte VERSION)
2-
// Note: compiler output will change before 5.0 is released!
31
import * as $ from "svelte/internal/server";
42
import TextInput from './Child.svelte';
53

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
// index.svelte (Svelte VERSION)
2-
// Note: compiler output will change before 5.0 is released!
31
import "svelte/internal/disclose-version";
42
import * as $ from "svelte/internal/client";
53

6-
function Bind_this($$anchor, $$props) {
4+
export default function Bind_this($$anchor, $$props) {
75
$.push($$props, false);
86
$.init();
97

@@ -13,6 +11,4 @@ function Bind_this($$anchor, $$props) {
1311
$.bind_this(Foo(node, {}), ($$value) => foo = $$value, () => foo);
1412
$.append($$anchor, fragment);
1513
$.pop();
16-
}
17-
18-
export default Bind_this;
14+
}

packages/svelte/tests/snapshot/samples/bind-this/_expected/server/index.svelte.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// index.svelte (Svelte VERSION)
2-
// Note: compiler output will change before 5.0 is released!
31
import * as $ from "svelte/internal/server";
42

53
export default function Bind_this($$payload, $$props) {

packages/svelte/tests/snapshot/samples/class-state-field-constructor-assignment/_expected/client/index.svelte.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
// index.svelte (Svelte VERSION)
2-
// Note: compiler output will change before 5.0 is released!
31
import "svelte/internal/disclose-version";
42
import * as $ from "svelte/internal/client";
53

6-
function Class_state_field_constructor_assignment($$anchor, $$props) {
4+
export default function Class_state_field_constructor_assignment($$anchor, $$props) {
75
$.push($$props, true);
86

97
class Foo {
@@ -26,6 +24,4 @@ function Class_state_field_constructor_assignment($$anchor, $$props) {
2624
}
2725

2826
$.pop();
29-
}
30-
31-
export default Class_state_field_constructor_assignment;
27+
}

packages/svelte/tests/snapshot/samples/class-state-field-constructor-assignment/_expected/server/index.svelte.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// index.svelte (Svelte VERSION)
2-
// Note: compiler output will change before 5.0 is released!
31
import * as $ from "svelte/internal/server";
42

53
export default function Class_state_field_constructor_assignment($$payload, $$props) {

packages/svelte/tests/snapshot/samples/dynamic-attributes-casing/_expected/client/main.svelte.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
// main.svelte (Svelte VERSION)
2-
// Note: compiler output will change before 5.0 is released!
31
import "svelte/internal/disclose-version";
42
import * as $ from "svelte/internal/client";
53

64
var root = $.template(`<div></div> <svg></svg> <custom-element></custom-element> <div></div> <svg></svg> <custom-element></custom-element>`, 3);
75

8-
function Main($$anchor, $$props) {
6+
export default function Main($$anchor, $$props) {
97
$.push($$props, true);
108

119
// needs to be a snapshot test because jsdom does auto-correct the attribute casing
@@ -35,6 +33,4 @@ function Main($$anchor, $$props) {
3533

3634
$.append($$anchor, fragment);
3735
$.pop();
38-
}
39-
40-
export default Main;
36+
}

packages/svelte/tests/snapshot/samples/dynamic-attributes-casing/_expected/server/main.svelte.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// main.svelte (Svelte VERSION)
2-
// Note: compiler output will change before 5.0 is released!
31
import * as $ from "svelte/internal/server";
42

53
export default function Main($$payload, $$props) {

packages/svelte/tests/snapshot/samples/each-string-template/_expected/client/index.svelte.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
// index.svelte (Svelte VERSION)
2-
// Note: compiler output will change before 5.0 is released!
31
import "svelte/internal/disclose-version";
42
import * as $ from "svelte/internal/client";
53

6-
function Each_string_template($$anchor, $$props) {
4+
export default function Each_string_template($$anchor, $$props) {
75
$.push($$props, false);
86
$.init();
97

@@ -19,6 +17,4 @@ function Each_string_template($$anchor, $$props) {
1917

2018
$.append($$anchor, fragment);
2119
$.pop();
22-
}
23-
24-
export default Each_string_template;
20+
}

packages/svelte/tests/snapshot/samples/each-string-template/_expected/server/index.svelte.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// index.svelte (Svelte VERSION)
2-
// Note: compiler output will change before 5.0 is released!
31
import * as $ from "svelte/internal/server";
42

53
export default function Each_string_template($$payload, $$props) {

0 commit comments

Comments
 (0)