Skip to content

Commit 47895b3

Browse files
committed
JS: Update test for UniquePropertyNames test
This query now reports the alert previously found by DuplicateProperty
1 parent 71fb6bf commit 47895b3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

javascript/ql/test/query-tests/Declarations/UniquePropertyNames/UniquePropertyNames.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
| tst2.js:4:3:6:3 | getX: f ... .x;\\n } | This property is overwritten by $@ in the same object literal. | tst2.js:12:3:14:3 | getX: f ... .x;\\n } | another property |
12
| tst2.js:8:3:10:3 | setX: f ... x;\\n } | This property is overwritten by $@ in the same object literal. | tst2.js:16:3:18:3 | setX: f ... x;\\n } | another property |
23
| tst.js:20:3:20:7 | x: 23 | This property is overwritten by $@ in the same object literal. | tst.js:23:3:23:7 | x: 56 | another property |
34
| tst.js:21:3:21:12 | y: "hello" | This property is overwritten by $@ in the same object literal. | tst.js:24:3:24:14 | "y": "world" | another property |

javascript/ql/test/query-tests/Declarations/UniquePropertyNames/tst2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var o = {
33

44
getX: function() {
55
return this.x;
6-
},
6+
}, // $ Alert
77

88
setX: function(x) {
99
this.x = x;

0 commit comments

Comments
 (0)