Skip to content

Commit 3235622

Browse files
committed
Add more unit test cases to account for OK accessor notation formats and remove empty rogue line.
1 parent ba9b9fd commit 3235622

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

WordPressVIPMinimum/Sniffs/JS/WindowSniff.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ public function register() {
7070
*/
7171
private $syntaxTokens = [
7272
T_OBJECT_OPERATOR,
73-
7473
];
7574

7675
/**

WordPressVIPMinimum/Tests/JS/WindowUnitTest.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ window['location']; // Error.
3232
window.location['href']; // Error.
3333
window['location']['protocol']; // Error.
3434
window['location'].host; // Error.
35+
36+
window['location']['test']; // Ok.
37+
window.location['test']; // Ok.
38+
window['test'].location; // Ok.

0 commit comments

Comments
 (0)