Skip to content

Commit 7449658

Browse files
authored
Test Vue useRoute query source
1 parent 7ef911e commit 7449658

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

javascript/ql/test/library-tests/frameworks/Vue/router.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Router from 'vue-router';
1+
import Router, { useRoute } from 'vue-router';
22

33
export const router = new Router({
44
routes: [
@@ -43,3 +43,5 @@ router.afterEach((to, from) => {
4343
to.query.x;
4444
from.query.x;
4545
});
46+
47+
useRoute().query;

javascript/ql/test/library-tests/frameworks/Vue/tests.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ remoteFlowSource
191191
| router.js:39:5:39:14 | from.query |
192192
| router.js:43:5:43:12 | to.query |
193193
| router.js:44:5:44:14 | from.query |
194+
| router.js:47:1:47:16 | useRoute().query |
194195
parseErrors
195196
attribute
196197
| compont-with-route.vue:2:8:2:21 | v-html=dataA | v-html |
@@ -239,6 +240,7 @@ threatModelSource
239240
| router.js:39:5:39:14 | from.query | remote |
240241
| router.js:43:5:43:12 | to.query | remote |
241242
| router.js:44:5:44:14 | from.query | remote |
243+
| router.js:47:1:47:16 | useRoute().query | remote |
242244
| single-component-file-1.vue:7:45:7:54 | this.input | view-component-input |
243245
| single-file-component-3-script.js:5:42:5:51 | this.input | view-component-input |
244246
| single-file-component-4.vue:21:14:21:23 | this.input | view-component-input |

0 commit comments

Comments
 (0)