Skip to content

Conversation

@mechcodeman
Copy link

No description provided.

@sjin9
Copy link

sjin9 commented Nov 10, 2023

well:

  1. baby setp commit
  2. all test covered
  3. all ACs complete
  4. meaningful commit message

@@ -1,12 +1,17 @@
import { TestBed } from '@angular/core/testing';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: this file can be removed

sum_c += counter.num
})
return sum_c;
// return this.counters.reduce((result, current) => result + current.num, 0)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: remove dead code

it('should reset all number when call OnResetNumber', () => {
component.counters = [{num: 1}, {num: 2}];
component.onResetNumber();
expect(component.counters).toEqual([{num: 0}, {num: 0}]);

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 data when test OnReset

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants