Skip to content

Commit

Permalink
test: add full var report test
Browse files Browse the repository at this point in the history
  • Loading branch information
SomaticIT committed Apr 11, 2021
1 parent 7053ea3 commit 4ba61e4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/vars/samples/vars-report-full/_config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
export default {
options: {
varsReport: 'full'
},

test(assert, vars) {
assert.deepEqual(vars, [{
name: 'foo',
export_name: null,
injected: false,
module: false,
mutated: false,
reassigned: false,
referenced: true,
referenced_from_script: false,
writable: false
}]);
}
};
3 changes: 3 additions & 0 deletions test/vars/samples/vars-report-full/input.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<script></script>

{foo}

0 comments on commit 4ba61e4

Please sign in to comment.