Skip to content

Commit 0442ca1

Browse files
Add tests for false positive check and uncovered edge-case for 100% statement coverage
1 parent 4b36428 commit 0442ca1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/on-watch.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ eslintTester.run('on-watch', rule, {
3030
'scope.$on()',
3131
'scope.$watch()',
3232
'$scope.$on()',
33-
'$scope.$watch()'
33+
'$scope.$watch()',
34+
35+
// false positive check
36+
'$on()',
37+
38+
// uncovered edgecase
39+
'$scope["$on"]()'
3440

3541
],
3642
invalid: [

0 commit comments

Comments
 (0)