Skip to content

Commit fd39e95

Browse files
committed
remove unnecessary code
1 parent 248f55a commit fd39e95

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

test/stats/index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ describe('stats', () => {
1919
const filename = `test/stats/samples/${dir}/input.svelte`;
2020
const input = fs.readFileSync(filename, 'utf-8').replace(/\s+$/, '');
2121

22-
const expectedWarnings =
23-
tryToLoadJson(`test/stats/samples/${dir}/warnings.json`) || [];
2422
const expectedError = tryToLoadJson(
2523
`test/stats/samples/${dir}/error.json`
2624
);
@@ -31,10 +29,6 @@ describe('stats', () => {
3129
try {
3230
result = svelte.compile(input, config.options);
3331
config.test(assert, result.stats);
34-
35-
if (result.warnings.length || expectedWarnings.length) {
36-
// TODO check warnings are added to warnings
37-
}
3832
} catch (e) {
3933
error = e;
4034
}

0 commit comments

Comments
 (0)