remove some unused validator tests

pull/1866/head
Rich Harris 7 years ago
parent 2123071dc7
commit d039bac3a9

@ -2,7 +2,7 @@ import * as fs from "fs";
import * as assert from "assert";
import { svelte, loadConfig, tryToLoadJson } from "../helpers.js";
describe("validate", () => {
describe.only("validate", () => {
fs.readdirSync("test/validator/samples").forEach(dir => {
if (dir[0] === ".") return;

@ -1,4 +0,0 @@
<script>
import Foo from './Foo.html';
import Bar from './Bar.html';
</script>

@ -1,32 +0,0 @@
[
{
"code": "unused-component",
"message": "The 'Foo' component is unused",
"start": {
"line": 7,
"column": 3,
"character": 109
},
"end": {
"line": 7,
"column": 6,
"character": 112
},
"pos": 109
},
{
"code": "unused-component",
"message": "The 'Bar' component is unused",
"start": {
"line": 8,
"column": 3,
"character": 117
},
"end": {
"line": 8,
"column": 6,
"character": 120
},
"pos": 117
}
]

@ -1,5 +0,0 @@
<script>
const drag = (node, callback) => {
// implementation goes here
};
</script>

@ -1,15 +0,0 @@
[{
"code": "unused-event",
"message": "The 'drag' event definition is unused",
"start": {
"line": 4,
"column": 3,
"character": 42
},
"end": {
"line": 6,
"column": 4,
"character": 106
},
"pos": 42
}]

@ -1,3 +0,0 @@
<script>
const uppercase = x => x.toUpperCase();
</script>

@ -1,15 +0,0 @@
[{
"code": "unused-helper",
"message": "The 'uppercase' helper is unused",
"start": {
"line": 4,
"column": 3,
"character": 43
},
"end": {
"line": 4,
"column": 34,
"character": 74
},
"pos": 43
}]

@ -1,5 +0,0 @@
<script>
const spin = node => {
// implementation goes here
};
</script>

@ -1,15 +0,0 @@
[{
"code": "unused-transition",
"message": "The 'spin' transition is unused",
"start": {
"line": 4,
"column": 3,
"character": 47
},
"end": {
"line": 6,
"column": 4,
"character": 99
},
"pos": 47
}]

@ -1 +0,0 @@
<svelte:window on:resize='{resize}'/>

@ -1,15 +0,0 @@
[{
"code": "invalid-callee",
"message": "'resize' is an invalid callee (should be one of this.*, refs.*, event.*, options.*, console.*, set, fire or destroy)",
"start": {
"line": 1,
"column": 26,
"character": 26
},
"end": {
"line": 1,
"column": 34,
"character": 34
},
"pos": 26
}]
Loading…
Cancel
Save