All Questions
3 questions
12
votes
1
answer
9k
views
What is different between fixture.debugElement.componentInstance and fixture.nativeElement?
In this sample test file I saw two different syntax
one is const app = fixture.debugElement.componentInstance; and another is const compiled = fixture.nativeElement; I don't know what is different ...
1
vote
1
answer
752
views
Angular4 Testing Karma - Error: Can't resolve all parameters for RequestOptions: (?)
This is my spec.ts file. I'm stuck with the error:
Error: Can't resolve all parameters for RequestOptions: (?)
I have imported all the providers necessary also. Can anyone please help me resolve ...
4
votes
1
answer
17k
views
Expected spy navigate to have been called with [ [ 'users' ] ] but it was never called in integration testing angular CLI
I implemented a simple integration test on a project but it failed because expect () line is executed before component.save() method. When I put the expect() line on a setTimeout() it is succeed. How ...