update tests

pull/2881/head
Richard Harris 6 years ago
parent cb1a76b08c
commit dda69dbad0

@ -67,7 +67,7 @@ function instance($$self, $$props, $$invalidate) {
const writable_props = ['name'];
Object.keys($$props).forEach(key => {
if (!writable_props.includes(key)) console.warn(`<Component> was created with unknown prop '${key}'`);
if (!writable_props.includes(key) && !key.startsWith('$$')) console.warn(`<Component> was created with unknown prop '${key}'`);
});
$$self.$set = $$props => {

@ -153,7 +153,7 @@ function instance($$self, $$props, $$invalidate) {
const writable_props = ['things', 'foo', 'bar', 'baz'];
Object.keys($$props).forEach(key => {
if (!writable_props.includes(key)) console.warn(`<Component> was created with unknown prop '${key}'`);
if (!writable_props.includes(key) && !key.startsWith('$$')) console.warn(`<Component> was created with unknown prop '${key}'`);
});
$$self.$set = $$props => {

@ -153,7 +153,7 @@ function instance($$self, $$props, $$invalidate) {
const writable_props = ['things', 'foo'];
Object.keys($$props).forEach(key => {
if (!writable_props.includes(key)) console.warn(`<Component> was created with unknown prop '${key}'`);
if (!writable_props.includes(key) && !key.startsWith('$$')) console.warn(`<Component> was created with unknown prop '${key}'`);
});
$$self.$set = $$props => {

@ -67,7 +67,7 @@ function instance($$self, $$props, $$invalidate) {
const writable_props = ['foo'];
Object.keys($$props).forEach(key => {
if (!writable_props.includes(key)) console.warn(`<Component> was created with unknown prop '${key}'`);
if (!writable_props.includes(key) && !key.startsWith('$$')) console.warn(`<Component> was created with unknown prop '${key}'`);
});
$$self.$set = $$props => {

Loading…
Cancel
Save