update tests

pull/4454/head
Conduitry 6 years ago
parent 6931af2f45
commit 72c163e8d3

@ -50,6 +50,12 @@ function create_fragment(ctx) {
function instance($$self, $$props, $$invalidate) { function instance($$self, $$props, $$invalidate) {
let obj = { x: 5 }; let obj = { x: 5 };
let kobzol = 5; let kobzol = 5;
const writable_props = [];
Object.keys($$props).forEach(key => {
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<Component> was created with unknown prop '${key}'`);
});
$$self.$capture_state = () => ({ obj, kobzol }); $$self.$capture_state = () => ({ obj, kobzol });
$$self.$inject_state = $$props => { $$self.$inject_state = $$props => {

@ -6,6 +6,7 @@ import {
detach_dev, detach_dev,
dispatch_dev, dispatch_dev,
element, element,
globals,
init, init,
insert_dev, insert_dev,
loop_guard, loop_guard,
@ -13,6 +14,7 @@ import {
safe_not_equal safe_not_equal
} from "svelte/internal"; } from "svelte/internal";
const { console: console_1 } = globals;
const file = undefined; const file = undefined;
function create_fragment(ctx) { function create_fragment(ctx) {
@ -102,6 +104,12 @@ function instance($$self, $$props, $$invalidate) {
} while (true); } while (true);
} }
const writable_props = [];
Object.keys($$props).forEach(key => {
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console_1.warn(`<Component> was created with unknown prop '${key}'`);
});
function div_binding($$value) { function div_binding($$value) {
binding_callbacks[$$value ? "unshift" : "push"](() => { binding_callbacks[$$value ? "unshift" : "push"](() => {
$$invalidate(0, node = $$value); $$invalidate(0, node = $$value);

Loading…
Cancel
Save