-
Notifications
You must be signed in to change notification settings - Fork 1
TT-264 UI test coverage #699
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #699 +/- ##
==========================================
+ Coverage 93.09% 95.30% +2.21%
==========================================
Files 85 104 +19
Lines 1564 2089 +525
Branches 107 155 +48
==========================================
+ Hits 1456 1991 +535
+ Misses 67 56 -11
- Partials 41 42 +1
Continue to review full report at Codecov.
|
@mrkevinomar in my localist host using your branch I have problems with the test: |
component.ngOnDestroy(); | ||
|
||
expect(subscription).toHaveBeenCalledTimes(1); | ||
|
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.
dete this line white
component.ngOnDestroy(); | ||
|
||
expect(subscriptionProjectTypes).toHaveBeenCalledTimes(1); | ||
|
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.
delete this line white
@@ -136,6 +144,7 @@ describe('ProjectListComponent', () => { | |||
spyOn(component, 'openModal'); | |||
component.switchStatus(itemData); | |||
expect(component.openModal).toHaveBeenCalled(); | |||
|
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.
delete this line white
import { UserService } from './user.service'; | ||
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; | ||
|
||
|
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.
delete this line-white
Kudos, SonarCloud Quality Gate passed!
|
In this PR, I added some unit testing in the methods that were not tested, and I removed the unit testing that was unnecessary in the project.