Sign Up

Sign In

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Sorry, you do not have a permission to ask a question, You must login to ask question.

Discy Latest Questions

  • 0
  • 0

I am preparing unit test case for AppComponent which have router as a injected dependency and have included RouterTestingModule in my test bed. But still getting a weird error. Please find the error log shown below: Error: StaticInjectorError(DynamicTestModule)[RouterLinkWithHref -> Router]: ...

  • 0
  • 0

I have created a new component and did ng test, but failing with the below error Failed: Unexpected directive ‘ContactDetailsComponent’ imported by the module ‘DynamicTestModule’. Please add a @NgModule annotation. import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { AdditionalContactDetailsComponent } from ...

  • 0
  • 0

I have an Angular 6 app and writing some unit tests trying to determine if an element is visible or not based solely on the boolean result of an *ngIf directive. Markup: <div class="header" *ngIf="show"> <div>...</div> </div> spec file: it('should hide contents if show ...

  • 0
  • 0

I have an angular CLI project set up. I’ve made a form that uses angular material components, like <md-card>. I’m just starting out with writing my first Karma/Jasmine unit test, following the steps in the angular docs. This is my component template: <md-card [ngClass]="'dialog-card'"> <md-card-title ...

close