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'), fs.readFileSync(`${cwd}/${file}`, 'utf-8'),
Object.assign(options, { Object.assign(options, {
filename: file, filename: file,
name: capitalise(name), name: capitalise(name)
parser: 'v2' // TODO remove
}) })
); );

@ -25,8 +25,7 @@ describe("js", () => {
try { try {
const options = Object.assign(config.options || {}, { const options = Object.assign(config.options || {}, {
shared: true, shared: true
parser: 'v2' // TODO remove
}); });
actual = svelte.compile(input, options).js.code.replace(/generated by Svelte v\d+\.\d+\.\d+/, 'generated by Svelte vX.Y.Z'); 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, () => { (solo ? it.only : it)(dir, () => {
const options = tryToLoadJson(`test/parser/samples/${dir}/options.json`) || {}; 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 input = fs.readFileSync(`test/parser/samples/${dir}/input.html`, 'utf-8').replace(/\s+$/, '');
const expectedOutput = tryToLoadJson(`test/parser/samples/${dir}/output.json`); const expectedOutput = tryToLoadJson(`test/parser/samples/${dir}/output.json`);
const expectedError = tryToLoadJson(`test/parser/samples/${dir}/error.json`); const expectedError = tryToLoadJson(`test/parser/samples/${dir}/error.json`);

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

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

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

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

Loading…
Cancel
Save