From d039bac3a9ee6ad6fffe9f536f5f2be7fee793b5 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 26 Nov 2018 22:51:44 -0500 Subject: [PATCH] remove some unused validator tests --- test/validator/index.js | 2 +- .../samples/unused-components/input.html | 4 --- .../samples/unused-components/warnings.json | 32 ------------------- .../validator/samples/unused-event/input.html | 5 --- .../samples/unused-event/warnings.json | 15 --------- .../samples/unused-helper/input.html | 3 -- .../samples/unused-helper/warnings.json | 15 --------- .../samples/unused-transition/input.html | 5 --- .../samples/unused-transition/warnings.json | 15 --------- .../samples/window-event-invalid/input.html | 1 - .../window-event-invalid/warnings.json | 15 --------- 11 files changed, 1 insertion(+), 111 deletions(-) delete mode 100644 test/validator/samples/unused-components/input.html delete mode 100644 test/validator/samples/unused-components/warnings.json delete mode 100644 test/validator/samples/unused-event/input.html delete mode 100644 test/validator/samples/unused-event/warnings.json delete mode 100644 test/validator/samples/unused-helper/input.html delete mode 100644 test/validator/samples/unused-helper/warnings.json delete mode 100644 test/validator/samples/unused-transition/input.html delete mode 100644 test/validator/samples/unused-transition/warnings.json delete mode 100644 test/validator/samples/window-event-invalid/input.html delete mode 100644 test/validator/samples/window-event-invalid/warnings.json diff --git a/test/validator/index.js b/test/validator/index.js index 6a1b446617..fb635cd067 100644 --- a/test/validator/index.js +++ b/test/validator/index.js @@ -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; diff --git a/test/validator/samples/unused-components/input.html b/test/validator/samples/unused-components/input.html deleted file mode 100644 index 0b4e0cd5a8..0000000000 --- a/test/validator/samples/unused-components/input.html +++ /dev/null @@ -1,4 +0,0 @@ - \ No newline at end of file diff --git a/test/validator/samples/unused-components/warnings.json b/test/validator/samples/unused-components/warnings.json deleted file mode 100644 index 51a15dec37..0000000000 --- a/test/validator/samples/unused-components/warnings.json +++ /dev/null @@ -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 - } -] diff --git a/test/validator/samples/unused-event/input.html b/test/validator/samples/unused-event/input.html deleted file mode 100644 index 8e712d009a..0000000000 --- a/test/validator/samples/unused-event/input.html +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/test/validator/samples/unused-event/warnings.json b/test/validator/samples/unused-event/warnings.json deleted file mode 100644 index 7a8f2714ad..0000000000 --- a/test/validator/samples/unused-event/warnings.json +++ /dev/null @@ -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 -}] diff --git a/test/validator/samples/unused-helper/input.html b/test/validator/samples/unused-helper/input.html deleted file mode 100644 index 3fafcb5f5b..0000000000 --- a/test/validator/samples/unused-helper/input.html +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/test/validator/samples/unused-helper/warnings.json b/test/validator/samples/unused-helper/warnings.json deleted file mode 100644 index abd2e97e05..0000000000 --- a/test/validator/samples/unused-helper/warnings.json +++ /dev/null @@ -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 -}] diff --git a/test/validator/samples/unused-transition/input.html b/test/validator/samples/unused-transition/input.html deleted file mode 100644 index b492401df4..0000000000 --- a/test/validator/samples/unused-transition/input.html +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/test/validator/samples/unused-transition/warnings.json b/test/validator/samples/unused-transition/warnings.json deleted file mode 100644 index 6e53240481..0000000000 --- a/test/validator/samples/unused-transition/warnings.json +++ /dev/null @@ -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 -}] diff --git a/test/validator/samples/window-event-invalid/input.html b/test/validator/samples/window-event-invalid/input.html deleted file mode 100644 index 7794cfbb7b..0000000000 --- a/test/validator/samples/window-event-invalid/input.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/test/validator/samples/window-event-invalid/warnings.json b/test/validator/samples/window-event-invalid/warnings.json deleted file mode 100644 index 2e403fe27b..0000000000 --- a/test/validator/samples/window-event-invalid/warnings.json +++ /dev/null @@ -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 -}]