Update validate slot position js tests

pull/8535/head
Nguyen Tran 3 years ago
parent 72c7f7a2c9
commit 0a37190ffe

@ -106,13 +106,13 @@ function instance($$self, $$props, $$invalidate) {
$$self.$$.on_destroy.push(() => $$unsubscribe_prop()); $$self.$$.on_destroy.push(() => $$unsubscribe_prop());
let { $$slots: slots = {}, $$scope } = $$props; let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('Component', slots, []);
let { prop } = $$props; let { prop } = $$props;
validate_store(prop, 'prop'); validate_store(prop, 'prop');
$$subscribe_prop(); $$subscribe_prop();
let { alias: realName } = $$props; let { alias: realName } = $$props;
let local; let local;
let shadowedByModule; let shadowedByModule;
validate_slots('Component', slots, []);
$$self.$$.on_mount.push(function () { $$self.$$.on_mount.push(function () {
if (prop === undefined && !('prop' in $$props || $$self.$$.bound[$$self.$$.props['prop']])) { if (prop === undefined && !('prop' in $$props || $$self.$$.bound[$$self.$$.props['prop']])) {

@ -70,8 +70,8 @@ function create_fragment(ctx) {
function instance($$self, $$props, $$invalidate) { function instance($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props; let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('Component', slots, []);
let { name } = $$props; let { name } = $$props;
validate_slots('Component', slots, []);
$$self.$$.on_mount.push(function () { $$self.$$.on_mount.push(function () {
if (name === undefined && !('name' in $$props || $$self.$$.bound[$$self.$$.props['name']])) { if (name === undefined && !('name' in $$props || $$self.$$.bound[$$self.$$.props['name']])) {

@ -173,11 +173,11 @@ function create_fragment(ctx) {
function instance($$self, $$props, $$invalidate) { function instance($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props; let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('Component', slots, []);
let { things } = $$props; let { things } = $$props;
let { foo } = $$props; let { foo } = $$props;
let { bar } = $$props; let { bar } = $$props;
let { baz } = $$props; let { baz } = $$props;
validate_slots('Component', slots, []);
$$self.$$.on_mount.push(function () { $$self.$$.on_mount.push(function () {
if (things === undefined && !('things' in $$props || $$self.$$.bound[$$self.$$.props['things']])) { if (things === undefined && !('things' in $$props || $$self.$$.bound[$$self.$$.props['things']])) {

@ -167,9 +167,9 @@ function create_fragment(ctx) {
function instance($$self, $$props, $$invalidate) { function instance($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props; let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('Component', slots, []);
let { things } = $$props; let { things } = $$props;
let { foo } = $$props; let { foo } = $$props;
validate_slots('Component', slots, []);
$$self.$$.on_mount.push(function () { $$self.$$.on_mount.push(function () {
if (things === undefined && !('things' in $$props || $$self.$$.bound[$$self.$$.props['things']])) { if (things === undefined && !('things' in $$props || $$self.$$.bound[$$self.$$.props['things']])) {

@ -50,9 +50,9 @@ function create_fragment(ctx) {
function instance($$self, $$props, $$invalidate) { function instance($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props; let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('Component', slots, []);
let obj = { x: 5 }; let obj = { x: 5 };
let kobzol = 5; let kobzol = 5;
validate_slots('Component', slots, []);
const writable_props = []; const writable_props = [];
Object.keys($$props).forEach(key => { Object.keys($$props).forEach(key => {

@ -66,9 +66,9 @@ function create_fragment(ctx) {
function instance($$self, $$props, $$invalidate) { function instance($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props; let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('Component', slots, []);
let { foo } = $$props; let { foo } = $$props;
let bar; let bar;
validate_slots('Component', slots, []);
$$self.$$.on_mount.push(function () { $$self.$$.on_mount.push(function () {
if (foo === undefined && !('foo' in $$props || $$self.$$.bound[$$self.$$.props['foo']])) { if (foo === undefined && !('foo' in $$props || $$self.$$.bound[$$self.$$.props['foo']])) {

@ -68,7 +68,6 @@ function foo() {
function instance($$self, $$props, $$invalidate) { function instance($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props; let { $$slots: slots = {}, $$scope } = $$props;
validate_slots('Component', slots, []);
let node; let node;
{ {
@ -107,6 +106,7 @@ function instance($$self, $$props, $$invalidate) {
} while (true); } while (true);
} }
validate_slots('Component', slots, []);
const writable_props = []; const writable_props = [];
Object.keys($$props).forEach(key => { Object.keys($$props).forEach(key => {

Loading…
Cancel
Save