Top "Angular-unit-test" questions

Questions about Angular unit testing.

How to access nativeElement attribute using debugeElement in angular unit test

I want to write a simple unit test to check if button is disable when certain value is null or …

angular angular-unit-test
Angular CLI create .spec files for already existing components

There is an option in .angular-cli.json to disable the automatic creating of *.spec files e.g. for components, see …

angular angular-cli angular-unit-test
Angular Test Error - NullInjectorError: No provider for TrimInputDirective

I created an Angular Directive, that uses CSS selectors to automatically trim inputs in my application, it looks like so... …

javascript angular unit-testing angular-directive angular-unit-test
"An error was thrown in afterAll\n[object ErrorEvent] thrown" - Angular 4 Unit tests

While I was working on Angular 4 unit tests, one of the pages which uses google maps and agm package showed …

angular angular-unit-test
Angular 6: How to write jasmine test spec for a mat-dialog

I trying to write a test spec for mat-dialog, but i could not be success, the problem is that it …

angular karma-jasmine angular-unit-test