remove unnecessary code

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

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

Loading…
Cancel
Save