Skip to content

Commit 7b6485c

Browse files
committed
JS: Rename some test predicates to match class name
1 parent b210719 commit 7b6485c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
instance_getAPropertyValue
1+
component_getAPropertyValue
22
| compont-with-route.vue:0:0:0:0 | compont-with-route.vue | dataA | compont-with-route.vue:31:14:31:34 | this.$r ... ery.foo |
33
| compont-with-route.vue:0:0:0:0 | compont-with-route.vue | message | compont-with-route.vue:19:15:19:22 | 'Hello!' |
44
| single-component-file-1.vue:0:0:0:0 | single-component-file-1.vue | dataA | single-component-file-1.vue:6:40:6:41 | 42 |
@@ -28,7 +28,7 @@ instance_getAPropertyValue
2828
| tst.js:85:1:87:2 | new Vue ... e; }\\n}) | created | tst.js:86:38:86:41 | true |
2929
| tst.js:94:2:96:3 | new Vue ... f,\\n\\t}) | dataA | tst.js:89:22:89:23 | 42 |
3030
| tst.js:99:2:104:3 | new Vue ... \\t\\t}\\n\\t}) | dataA | tst.js:100:18:100:19 | 42 |
31-
instance_getOption
31+
component_getOption
3232
| compont-with-route.vue:0:0:0:0 | compont-with-route.vue | watch | compont-with-route.vue:10:12:16:5 | {\\n ... }\\n } |
3333
| single-component-file-1.vue:0:0:0:0 | single-component-file-1.vue | data | single-component-file-1.vue:6:11:6:45 | functio ... 42 } } |
3434
| single-file-component-3.vue:0:0:0:0 | single-file-component-3.vue | data | single-file-component-3-script.js:4:8:4:42 | functio ... 42 } } |
@@ -58,7 +58,7 @@ instance_getOption
5858
| tst.js:94:2:96:3 | new Vue ... f,\\n\\t}) | data | tst.js:95:9:95:9 | f |
5959
| tst.js:99:2:104:3 | new Vue ... \\t\\t}\\n\\t}) | data | tst.js:100:9:100:21 | { dataA: 42 } |
6060
| tst.js:99:2:104:3 | new Vue ... \\t\\t}\\n\\t}) | methods | tst.js:101:12:103:3 | {\\n\\t\\t\\tm: ... ; }\\n\\t\\t} |
61-
instance
61+
component
6262
| compont-with-route.vue:0:0:0:0 | compont-with-route.vue |
6363
| single-component-file-1.vue:0:0:0:0 | single-component-file-1.vue |
6464
| single-file-component-2.vue:0:0:0:0 | single-file-component-2.vue |

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import javascript
22
import semmle.javascript.security.dataflow.Xss
33

4-
query predicate instance_getAPropertyValue(Vue::Component c, string name, DataFlow::Node prop) {
4+
query predicate component_getAPropertyValue(Vue::Component c, string name, DataFlow::Node prop) {
55
c.getAPropertyValue(name) = prop
66
}
77

8-
query predicate instance_getOption(Vue::Component c, string name, DataFlow::Node prop) {
8+
query predicate component_getOption(Vue::Component c, string name, DataFlow::Node prop) {
99
c.getOption(name) = prop
1010
}
1111

12-
query predicate instance(Vue::Component c) { any() }
12+
query predicate component(Vue::Component c) { any() }
1313

1414
query predicate instance_heapStep(
1515
Vue::InstanceHeapStep step, DataFlow::Node pred, DataFlow::Node succ

0 commit comments

Comments
 (0)