diff --git a/test/vars/index.js b/test/vars/index.js index 66ffd94c70..71617b8bf9 100644 --- a/test/vars/index.js +++ b/test/vars/index.js @@ -2,7 +2,7 @@ import * as fs from 'fs'; import * as assert from 'assert'; import { svelte, loadConfig, tryToLoadJson } from '../helpers.js'; -describe('vars', () => { +describe.only('vars', () => { fs.readdirSync('test/vars/samples').forEach(dir => { if (dir[0] === '.') return; diff --git a/test/vars/samples/implicit-action/_config.js b/test/vars/samples/implicit-action/_config.js deleted file mode 100644 index 2b84e83f12..0000000000 --- a/test/vars/samples/implicit-action/_config.js +++ /dev/null @@ -1,5 +0,0 @@ -export default { - test(assert, vars) { - assert.deepEqual(vars, []); - }, -}; diff --git a/test/vars/samples/implicit-action/input.svelte b/test/vars/samples/implicit-action/input.svelte deleted file mode 100644 index 466495d255..0000000000 --- a/test/vars/samples/implicit-action/input.svelte +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/test/vars/samples/implicit/_config.js b/test/vars/samples/implicit/_config.js index 0c685e7f18..2b84e83f12 100644 --- a/test/vars/samples/implicit/_config.js +++ b/test/vars/samples/implicit/_config.js @@ -1,16 +1,5 @@ export default { test(assert, vars) { - assert.deepEqual(vars, [ - { - export_name: 'foo', - injected: false, - module: false, - mutated: false, - name: 'foo', - reassigned: false, - referenced: true, - writable: true, - }, - ]); + assert.deepEqual(vars, []); }, }; diff --git a/test/vars/samples/template-references/_config.js b/test/vars/samples/template-references/_config.js index 1d78fbdf46..adacc0d2ef 100644 --- a/test/vars/samples/template-references/_config.js +++ b/test/vars/samples/template-references/_config.js @@ -2,27 +2,27 @@ export default { test(assert, vars) { assert.deepEqual(vars, [ { - export_name: 'foo', + export_name: null, injected: false, module: false, mutated: false, - name: 'foo', + name: 'Bar', reassigned: false, referenced: true, - writable: true, + writable: false, }, { - export_name: 'Bar', + export_name: null, injected: false, module: false, mutated: false, - name: 'Bar', + name: 'foo', reassigned: false, referenced: true, writable: true, }, { - export_name: 'baz', + export_name: null, injected: false, module: false, mutated: false, diff --git a/test/vars/samples/template-references/input.svelte b/test/vars/samples/template-references/input.svelte index 938e61b7bd..4e2edad7e6 100644 --- a/test/vars/samples/template-references/input.svelte +++ b/test/vars/samples/template-references/input.svelte @@ -1,2 +1,9 @@ + + {foo}