-
Notifications
You must be signed in to change notification settings - Fork 5
Yuhua's pr #4
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?
Yuhua's pr #4
Conversation
|
well
to be improved
|
|
|
||
| it('should delete a counter when onDeleteCounter when given valid id', () => { | ||
| component.onDeleteCounter(firstCounterId); | ||
| expect(component.counters.length).toEqual(4); |
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: not only test count, but also test data in counters
| component.onReset(); | ||
| expect(component.counterSum).toEqual(0); | ||
| component.counters.forEach(counter => [ | ||
| expect(counter.num).toEqual(0) |
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 num of each counter
| expect(component.isShowDecreaseButton).toBeTruthy(); | ||
| }); | ||
|
|
||
| it('should isShouldDecrease to be false when number < 0', () => { |
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 cover so many cases
No description provided.