update tests

pull/3870/head
Richard Harris 5 years ago
parent 93ac624132
commit d8b25afacd

@ -3,7 +3,7 @@ import * as fs from "fs";
import * as path from "path";
import { loadConfig, svelte } from "../helpers.js";
describe("js", () => {
describe.only("js", () => {
fs.readdirSync(`${__dirname}/samples`).forEach(dir => {
if (dir[0] === ".") return;

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
detach,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
attr,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
add_render_callback,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
detach,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
add_render_callback,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
attr,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
create_component,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
create_component,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
create_component,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
create_component,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
create_component,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
component_subscribe,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, safe_not_equal } from "svelte/internal";
function instance($$self, $$props, $$invalidate) {

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteElement,
detach,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
attr,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponentDev,
add_location,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponentDev,
add_location,
@ -23,6 +24,7 @@ function get_each_context(ctx, list, i) {
return child_ctx;
}
// (8:0) {#each things as thing}
function create_each_block(ctx) {
let span;
let t0_value = ctx.thing.name + "";

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponentDev,
add_location,
@ -23,6 +24,7 @@ function get_each_context(ctx, list, i) {
return child_ctx;
}
// (6:0) {#each things as thing}
function create_each_block(ctx) {
let span;
let t0_value = ctx.thing.name + "";

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponentDev,
dispatch_dev,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponentDev,
destroy_each,
@ -21,6 +22,7 @@ function get_each_context(ctx, list, i) {
return child_ctx;
}
// (4:0) {#each things as thing, index}
function create_each_block(ctx) {
let t0;
let t1_value = ctx.thing + "";

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import { create_ssr_component, debug, each, escape } from "svelte/internal";
const Component = create_ssr_component(($$result, $$props, $$bindings, $$slots) => {

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,
@ -19,6 +20,7 @@ function get_each_context(ctx, list, i) {
return child_ctx;
}
// (5:0) {#each createElement as node}
function create_each_block(ctx) {
let span;
let t_value = ctx.node + "";

@ -1,4 +1,6 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, safe_not_equal } from "svelte/internal";
import { onMount } from "svelte";
function instance($$self, $$props, $$invalidate) {

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponentDev,
add_location,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
detach,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
create_component,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,
@ -19,6 +20,7 @@ function get_each_context(ctx, list, i) {
return child_ctx;
}
// (9:0) {#each [a, b, c, d, e] as num}
function create_each_block(ctx) {
let span;
let t_value = ctx.num + "";

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
HtmlTag,
SvelteComponent,
@ -22,6 +23,7 @@ function get_each_context(ctx, list, i) {
return child_ctx;
}
// (8:0) {#each comments as comment, i}
function create_each_block(ctx) {
let div;
let strong;
@ -163,13 +165,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, {
comments: 0,
elapsed: 0,
time: 0,
foo: 0
});
init(this, options, instance, create_fragment, safe_not_equal, { comments: 0, elapsed: 0, time: 0, foo: 0 });
}
}

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,
@ -22,6 +23,7 @@ function get_each_context(ctx, list, i) {
return child_ctx;
}
// (19:0) {#each things as thing (thing.id)}
function create_each_block(key_1, ctx) {
let div;
let t_value = ctx.thing.name + "";

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,
@ -20,6 +21,7 @@ function get_each_context(ctx, list, i) {
return child_ctx;
}
// (5:0) {#each things as thing (thing.id)}
function create_each_block(key_1, ctx) {
let div;
let t_value = ctx.thing.name + "";

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, safe_not_equal } from "svelte/internal";
function instance($$self) {

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
attr,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
detach,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
detach,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
attr,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
detach,
@ -26,6 +27,7 @@ function create_else_block(ctx) {
};
}
// (5:0) {#if foo}
function create_if_block(ctx) {
let p;

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
detach,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
detach,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
detach,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
detach,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
attr,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
detach,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
attr,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,
@ -70,11 +71,7 @@ function instance($$self, $$props, $$invalidate) {
$$invalidate("test", test);
}
return {
test,
handleSubmit,
input_input_handler
};
return { test, handleSubmit, input_input_handler };
}
class Component extends SvelteComponent {

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
attr,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
attr,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
detach,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
add_render_callback,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
create_component,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
detach,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, safe_not_equal } from "svelte/internal";
function instance($$self, $$props, $$invalidate) {

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, safe_not_equal } from "svelte/internal";
function instance($$self, $$props, $$invalidate) {

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,

@ -1,4 +1,6 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, safe_not_equal } from "svelte/internal";
const SOME_CONSTANT = 42;
function foo(bar) {

@ -1,4 +1,6 @@
/* generated by Svelte vX.Y.Z */
import { create_ssr_component } from "svelte/internal";
import { onDestroy, onMount } from "svelte";
function preload(input) {

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import { create_ssr_component } from "svelte/internal";
const Component = create_ssr_component(($$result, $$props, $$bindings, $$slots) => {

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import { SvelteComponent, init, noop, safe_not_equal } from "svelte/internal";
function create_fragment(ctx) {

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
add_render_callback,
@ -47,6 +48,7 @@ function create_if_block(ctx) {
};
}
// (9:1) {#if y}
function create_if_block_1(ctx) {
let div;
let div_intro;

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
check_outros,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
append,
@ -28,6 +29,7 @@ function create_if_block_4(ctx) {
};
}
// (16:1) {#if b}
function create_if_block_3(ctx) {
let p;
@ -45,6 +47,7 @@ function create_if_block_3(ctx) {
};
}
// (20:1) {#if c}
function create_if_block_2(ctx) {
let p;
@ -62,6 +65,7 @@ function create_if_block_2(ctx) {
};
}
// (26:1) {#if d}
function create_if_block_1(ctx) {
let p;
@ -79,6 +83,7 @@ function create_if_block_1(ctx) {
};
}
// (33:0) {#if e}
function create_if_block(ctx) {
let p;

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
add_render_callback,

@ -1,3 +1,4 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
add_render_callback,

Loading…
Cancel
Save