pull/1348/head
Rich Harris 7 years ago
parent cae4dd93bf
commit 73e83e5571

@ -187,8 +187,7 @@ export function showOutput(cwd, options = {}, compile = svelte.compile) {
fs.readFileSync(`${cwd}/${file}`, 'utf-8'),
Object.assign(options, {
filename: file,
name: capitalise(name),
parser: 'v2' // TODO remove
name: capitalise(name)
})
);

@ -25,8 +25,7 @@ describe("js", () => {
try {
const options = Object.assign(config.options || {}, {
shared: true,
parser: 'v2' // TODO remove
shared: true
});
actual = svelte.compile(input, options).js.code.replace(/generated by Svelte v\d+\.\d+\.\d+/, 'generated by Svelte vX.Y.Z');

@ -18,8 +18,6 @@ describe('parse', () => {
(solo ? it.only : it)(dir, () => {
const options = tryToLoadJson(`test/parser/samples/${dir}/options.json`) || {};
options.parser = 'v2'; // TODO remove
const input = fs.readFileSync(`test/parser/samples/${dir}/input.html`, 'utf-8').replace(/\s+$/, '');
const expectedOutput = tryToLoadJson(`test/parser/samples/${dir}/output.json`);
const expectedError = tryToLoadJson(`test/parser/samples/${dir}/error.json`);

@ -72,7 +72,6 @@ describe("runtime", () => {
compileOptions.dev = config.dev;
compileOptions.store = !!config.store;
compileOptions.immutable = config.immutable;
compileOptions.parser = 'v2'; // TODO remove
Object.keys(require.cache)
.filter(x => x.endsWith(".html"))

@ -1,6 +1,4 @@
export default {
store: true, // TODO remove this in v2
html: `
<h1>Hello, world!</h1>
`,

@ -1,6 +1,4 @@
export default {
store: true, // TODO remove this in v2
html: `
<h1>Hello world!</h1>
<p>It's nice to see you, world.</p>

@ -32,8 +32,7 @@ describe("validate", () => {
warnings.push({ code, message, pos, loc, end });
},
dev: config.dev,
generate: false,
parser: 'v2' // TODO remove
generate: false
});
assert.equal(stats.warnings.length, warnings.length);

Loading…
Cancel
Save