Skip to content

Commit 1789f40

Browse files
devversiontinayuangao
authored andcommitted
chore(checkbox): duplicate event binding in tests (#4758)
* Removes the duplicate event binding for the `(change)` event in the checkbox tests.
1 parent e3b2587 commit 1789f40

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/lib/checkbox/checkbox.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,6 @@ describe('MdCheckbox', () => {
795795
[color]="checkboxColor"
796796
[disableRipple]="disableRipple"
797797
[value]="checkboxValue"
798-
(change)="changeCount = changeCount + 1"
799798
(click)="onCheckboxClick($event)"
800799
(change)="onCheckboxChange($event)">
801800
Simple checkbox
@@ -812,7 +811,6 @@ class SingleCheckbox {
812811
parentElementClicked: boolean = false;
813812
parentElementKeyedUp: boolean = false;
814813
lastKeydownEvent: Event = null;
815-
changeCount: number = 0;
816814
checkboxColor: string = 'primary';
817815
checkboxValue: string = 'single_checkbox';
818816

0 commit comments

Comments
 (0)