From fd39e9505b5ecc423154907198c06d4a77fe17f2 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Mon, 18 Feb 2019 13:56:05 -0500 Subject: [PATCH] remove unnecessary code --- test/stats/index.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/stats/index.js b/test/stats/index.js index e5a3c53eca..aafc58c926 100644 --- a/test/stats/index.js +++ b/test/stats/index.js @@ -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; }