Skip to content

Commit 8611af9

Browse files
committed
fix test case
1 parent e1a7831 commit 8611af9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

test/js/samples/capture-inject-state/expected.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
safe_not_equal,
1313
set_data_dev,
1414
space,
15-
subscribe,
15+
subscribe_dynamic_store,
1616
text,
1717
validate_slots,
1818
validate_store
@@ -102,7 +102,7 @@ function instance($$self, $$props, $$invalidate) {
102102

103103
let $prop,
104104
$$unsubscribe_prop = noop,
105-
$$subscribe_prop = () => ($$unsubscribe_prop(), $$unsubscribe_prop = subscribe(prop, $$value => $$invalidate(2, $prop = $$value)), prop);
105+
$$subscribe_prop = () => ($$unsubscribe_prop(), $$unsubscribe_prop = subscribe_dynamic_store(prop, $$value => $$invalidate(2, $prop = $$value)), prop);
106106

107107
$$self.$$.on_destroy.push(() => $$unsubscribe_prop());
108108
let { $$slots: slots = {}, $$scope } = $$props;

test/js/samples/component-store-reassign-invalidate/expected.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
safe_not_equal,
1212
set_data,
1313
space,
14-
subscribe,
14+
subscribe_dynamic_store,
1515
text
1616
} from "svelte/internal";
1717

@@ -62,7 +62,7 @@ function create_fragment(ctx) {
6262
function instance($$self, $$props, $$invalidate) {
6363
let $foo,
6464
$$unsubscribe_foo = noop,
65-
$$subscribe_foo = () => ($$unsubscribe_foo(), $$unsubscribe_foo = subscribe(foo, $$value => $$invalidate(1, $foo = $$value)), foo);
65+
$$subscribe_foo = () => ($$unsubscribe_foo(), $$unsubscribe_foo = subscribe_dynamic_store(foo, $$value => $$invalidate(1, $foo = $$value)), foo);
6666

6767
$$self.$$.on_destroy.push(() => $$unsubscribe_foo());
6868
let foo = writable(0);

test/js/samples/reactive-class-optimized/expected.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
noop,
1010
safe_not_equal,
1111
space,
12-
subscribe,
12+
subscribe_dynamic_store,
1313
toggle_class
1414
} from "svelte/internal";
1515

@@ -136,7 +136,7 @@ function instance($$self, $$props, $$invalidate) {
136136

137137
let $reactiveDeclaration,
138138
$$unsubscribe_reactiveDeclaration = noop,
139-
$$subscribe_reactiveDeclaration = () => ($$unsubscribe_reactiveDeclaration(), $$unsubscribe_reactiveDeclaration = subscribe(reactiveDeclaration, $$value => $$invalidate(3, $reactiveDeclaration = $$value)), reactiveDeclaration);
139+
$$subscribe_reactiveDeclaration = () => ($$unsubscribe_reactiveDeclaration(), $$unsubscribe_reactiveDeclaration = subscribe_dynamic_store(reactiveDeclaration, $$value => $$invalidate(3, $reactiveDeclaration = $$value)), reactiveDeclaration);
140140

141141
component_subscribe($$self, reactiveStoreVal, $$value => $$invalidate(2, $reactiveStoreVal = $$value));
142142
$$self.$$.on_destroy.push(() => $$unsubscribe_reactiveDeclaration());

0 commit comments

Comments
 (0)