remove unnecessary code

pull/2102/head
Richard Harris 7 years ago
parent 248f55a574
commit fd39e9505b

@ -19,8 +19,6 @@ describe('stats', () => {
const filename = `test/stats/samples/${dir}/input.svelte`; const filename = `test/stats/samples/${dir}/input.svelte`;
const input = fs.readFileSync(filename, 'utf-8').replace(/\s+$/, ''); const input = fs.readFileSync(filename, 'utf-8').replace(/\s+$/, '');
const expectedWarnings =
tryToLoadJson(`test/stats/samples/${dir}/warnings.json`) || [];
const expectedError = tryToLoadJson( const expectedError = tryToLoadJson(
`test/stats/samples/${dir}/error.json` `test/stats/samples/${dir}/error.json`
); );
@ -31,10 +29,6 @@ describe('stats', () => {
try { try {
result = svelte.compile(input, config.options); result = svelte.compile(input, config.options);
config.test(assert, result.stats); config.test(assert, result.stats);
if (result.warnings.length || expectedWarnings.length) {
// TODO check warnings are added to warnings
}
} catch (e) { } catch (e) {
error = e; error = e;
} }

Loading…
Cancel
Save