beforeEach(fakeAsync(() => {
   fixture = TestBed.createComponent(TaskTimerEditorComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
   tick();
 }));
 it('should have expected <h1> text', () => {
   fixture.detectChanges();
   const h1 = de.nativeElement;
   expect(h1.innerText).toMatch(/angular/i,
     '<h1> should say something about "Angular"');
 });
 beforeEach(() => {
   fixture = TestBed.createComponent(UsertrackedComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
 beforeEach(() => {
   fixture = TestBed.createComponent(RankRecipientsQuestionResponseComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
 beforeEach(() => {
   fixture = TestBed.createComponent(PendingTransactionsComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
 beforeEach(() => {
   fixture = TestBed.createComponent(ProjectDetailOverviewComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
 beforeEach(() => {
   fixture = TestBed.createComponent(UpcomingscholarshipComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
 beforeEach(() => {
     router = TestBed.get(Router);
     authService = TestBed.get(AuthenticationService);
     fixture = TestBed.createComponent(TestComponent);
     fixture.detectChanges();
 });
Пример #9
0
 it("dispatches a request for data", () => {
   spyOn(actions, "fetchExplore");
   spyOn(store, "dispatch");
   fixture.detectChanges();
   expect(store.dispatch).toHaveBeenCalledWith(actions.fetchExplore());
 });
 beforeEach(() => {
   fixture = TestBed.createComponent(AttendanceAverageDashboardComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
 beforeEach(() => {
   fixture = TestBed.createComponent(ListSearchComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
 beforeEach(() => {
   fixture = TestBed.createComponent(ExemploNgContentComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
Пример #13
0
  it('should compile', () => {
    fixture.detectChanges();

    expect(fixture).toMatchSnapshot();
  });
 beforeEach(() => {
   fixture = TestBed.createComponent(UserManagementComponent)
   component = fixture.componentInstance
   fixture.detectChanges()
 })
 beforeEach(() => {
   fixture = TestBed.createComponent(ClubDetailMainComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
Пример #16
0
 it("dispatches a request to set the layout", () => {
   spyOn(actions, "setLayout").and.callThrough();
   spyOn(store, "dispatch");
   fixture.detectChanges();
   expect(store.dispatch).toHaveBeenCalledWith(actions.setLayout("full"));
 });
Пример #17
0
 beforeEach(() => {
   fixture = TestBed.createComponent(LeoMessiPage);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
Пример #18
0
      it("links to the community view", () => {
        fixture.detectChanges();

        expect(button.textContent).not.toBeFalsy();
        expect(button.getAttribute("href")).toBe("https://www.habitat.sh/community/");
      });
 it('should render title in a h1 tag', async(() => {
   fixture = TestBed.createComponent(HomeComponent);
   fixture.detectChanges();
   const compiled = fixture.debugElement.nativeElement;
   expect(compiled.querySelector('h1').textContent).toContain('App works !');
 }));
Пример #20
0
 beforeEach(() => {
   fixture = TestBed.createComponent(OsdScrubModalComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
 beforeEach(() => {
     fixture = TestBed.createComponent(MotionImportListComponent);
     component = fixture.componentInstance;
     fixture.detectChanges();
 });
Пример #22
0
 beforeEach(() => {
   fixture = TestBed.createComponent(FpgaStatusComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
 beforeEach(() => {
   fixture = TestBed.createComponent(CampoControlErroComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
 beforeEach(() => {
   fixture = TestBed.createComponent(AppFirstSectionComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
 beforeEach(() => {
   fixture = TestBed.createComponent(EnrichmentRegistrationComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
 beforeEach(() => {
   fixture = TestBed.createComponent(MeuPrimeiroComponenteComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
Пример #27
0
 beforeEach(() => {
   fixture = TestBed.createComponent(HeaderDialogComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
Пример #28
0
 const setCurrentDoc = (contents, id = 'fizz/buzz') => {
   parentComponent.currentDoc = {contents, id};
   parentFixture.detectChanges();
 };
 beforeEach(() => {
   fixture = TestBed.createComponent(TaskEditComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });
 beforeEach(() => {
   fixture = TestBed.createComponent(GarantiedesgaresComponent);
   component = fixture.componentInstance;
   fixture.detectChanges();
 });