-
Notifications
You must be signed in to change notification settings - Fork 5
kailin counter-group #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Good points:
|
| expect(component.counters.length).toEqual(4) | ||
| }); | ||
|
|
||
| it('should remove counters when call OnResetCounters', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: test description is misleading, what we test here is the remove feature
| @@ -0,0 +1,11 @@ | |||
| <button (click)="OnAdd()">add counter</button> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: missing title "Counter Group", it should be on top of the "add counter" button
| {num: 3} | ||
| ] | ||
| component.removeCounter(1) | ||
| expect(component.counters.length).toEqual(2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well: nice to verify counters when test remove feature
| this.counters.push({num: 0}) | ||
| } | ||
|
|
||
| OnResetCounters() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: this method should also be covered by test
No description provided.