diff --git a/test/js/samples/debug-empty/expected.js b/test/js/samples/debug-empty/expected.js index b545823c57..f3c9f5c271 100644 --- a/test/js/samples/debug-empty/expected.js +++ b/test/js/samples/debug-empty/expected.js @@ -69,10 +69,10 @@ function create_fragment(ctx) { function instance($$self, $$props, $$invalidate) { let { name } = $$props; - const writable_props = ["name"]; + const props = ["name"]; Object.keys($$props).forEach(key => { - if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(` was created with unknown prop '${key}'`); + if (!~props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(` was created with unknown prop '${key}'`); }); $$self.$set = $$props => { @@ -119,4 +119,4 @@ class Component extends SvelteComponentDev { } } -export default Component; \ No newline at end of file +export default Component; diff --git a/test/js/samples/debug-foo-bar-baz-things/expected.js b/test/js/samples/debug-foo-bar-baz-things/expected.js index 448fc82176..4b27196dba 100644 --- a/test/js/samples/debug-foo-bar-baz-things/expected.js +++ b/test/js/samples/debug-foo-bar-baz-things/expected.js @@ -164,10 +164,10 @@ function instance($$self, $$props, $$invalidate) { let { foo } = $$props; let { bar } = $$props; let { baz } = $$props; - const writable_props = ["things", "foo", "bar", "baz"]; + const props = ["things", "foo", "bar", "baz"]; Object.keys($$props).forEach(key => { - if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(` was created with unknown prop '${key}'`); + if (!~props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(` was created with unknown prop '${key}'`); }); $$self.$set = $$props => { @@ -256,4 +256,4 @@ class Component extends SvelteComponentDev { } } -export default Component; \ No newline at end of file +export default Component; diff --git a/test/js/samples/debug-foo/expected.js b/test/js/samples/debug-foo/expected.js index 8abfd1bae1..effce4dda2 100644 --- a/test/js/samples/debug-foo/expected.js +++ b/test/js/samples/debug-foo/expected.js @@ -162,10 +162,10 @@ function create_fragment(ctx) { function instance($$self, $$props, $$invalidate) { let { things } = $$props; let { foo } = $$props; - const writable_props = ["things", "foo"]; + const props = ["things", "foo"]; Object.keys($$props).forEach(key => { - if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(` was created with unknown prop '${key}'`); + if (!~props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(` was created with unknown prop '${key}'`); }); $$self.$set = $$props => { @@ -226,4 +226,4 @@ class Component extends SvelteComponentDev { } } -export default Component; \ No newline at end of file +export default Component; diff --git a/test/js/samples/dev-warning-missing-data-computed/expected.js b/test/js/samples/dev-warning-missing-data-computed/expected.js index 5da2b4aead..0acd37dca9 100644 --- a/test/js/samples/dev-warning-missing-data-computed/expected.js +++ b/test/js/samples/dev-warning-missing-data-computed/expected.js @@ -66,10 +66,10 @@ function create_fragment(ctx) { function instance($$self, $$props, $$invalidate) { let { foo } = $$props; let bar; - const writable_props = ["foo"]; + const props = ["foo"]; Object.keys($$props).forEach(key => { - if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(` was created with unknown prop '${key}'`); + if (!~props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(` was created with unknown prop '${key}'`); }); $$self.$set = $$props => { @@ -123,4 +123,4 @@ class Component extends SvelteComponentDev { } } -export default Component; \ No newline at end of file +export default Component; diff --git a/test/runtime/samples/dev-warning-unknown-props-uses-readable/Foo.svelte b/test/runtime/samples/dev-warning-unknown-props-uses-readable/Foo.svelte index 14509b2fa1..a4b044124c 100644 --- a/test/runtime/samples/dev-warning-unknown-props-uses-readable/Foo.svelte +++ b/test/runtime/samples/dev-warning-unknown-props-uses-readable/Foo.svelte @@ -1,5 +1,5 @@
{foo}
diff --git a/test/runtime/samples/dev-warning-unknown-props-uses-readable/main.svelte b/test/runtime/samples/dev-warning-unknown-props-uses-readable/main.svelte index dbefea7b4d..99b8c22505 100644 --- a/test/runtime/samples/dev-warning-unknown-props-uses-readable/main.svelte +++ b/test/runtime/samples/dev-warning-unknown-props-uses-readable/main.svelte @@ -2,4 +2,4 @@ import Foo from './Foo.svelte'; - +