Skip to content

Conversation

@josepato87
Copy link
Contributor

There is a test missing. Looking at some documentation we need something else (Test/Wrapper Component) to test the whole feature of the 'goingToWorkOnThis'. This could be done in tech debt :(. Not a clean solution, but regarding time, it's enough.

@codecov
Copy link

codecov bot commented Dec 28, 2020

Codecov Report

Merging #593 (1424d50) into master (13de42e) will increase coverage by 0.67%.
The diff coverage is 98.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #593      +/-   ##
==========================================
+ Coverage   93.09%   93.76%   +0.67%     
==========================================
  Files          85       95      +10     
  Lines        1564     1700     +136     
  Branches      107      112       +5     
==========================================
+ Hits         1456     1594     +138     
- Misses         67       69       +2     
+ Partials       41       37       -4     
Impacted Files Coverage Δ
src/app/app-routing.module.ts 100.00% <ø> (ø)
...nents/time-range-form/time-range-form.component.ts 100.00% <ø> (ø)
...project-list-hover/project-list-hover.component.ts 88.37% <ø> (ø)
...dules/time-entries/pages/time-entries.component.ts 83.58% <87.50%> (+0.76%) ⬆️
src/app/modules/users/store/user.reducers.ts 87.50% <87.50%> (ø)
...ponents/details-fields/details-fields.component.ts 90.69% <94.11%> (+3.51%) ⬆️
src/app/guards/login-guard/login.guard.ts 100.00% <100.00%> (ø)
...nologies-report-guard/technologies-report.guard.ts 100.00% <100.00%> (ø)
src/app/modules/login/login.component.ts 100.00% <100.00%> (+16.66%) ⬆️
...app/modules/login/services/azure.ad.b2c.service.ts 86.95% <100.00%> (+4.60%) ⬆️
... and 31 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b33951...1424d50. Read the comment docs.

this.goingToWorkOnThis = event.currentTarget.checked;
if (!this.goingToWorkOnThis) {
this.entryForm.patchValue({ end_hour: formatDate(new Date(), 'HH:mm:ss', 'en') });
this.entryForm.patchValue({
Copy link
Contributor

Choose a reason for hiding this comment

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

There is an opportunity to improve our coverage, testing this line according to Codecov. :)

@josepato87 josepato87 closed this Dec 28, 2020
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.

4 participants