Skip to content
Snippets Groups Projects
app-root.component.spec.ts 768 B
Newer Older
  • Learn to ignore specific revisions
  • import { async, ComponentFixture, TestBed } from '@angular/core/testing';
    
    import { RouterTestingModule } from '@angular/router/testing';
    
    import { AppRootComponent } from './app-root.component';
    
    describe('AppRootComponent', () => {
      let component: AppRootComponent;
      let fixture: ComponentFixture<AppRootComponent>;
    
    
      beforeEach(async(() => {
        TestBed.configureTestingModule({
    
          declarations: [
            AppRootComponent
          ],
          imports: [
            RouterTestingModule
          ]
    
    paflov's avatar
    paflov committed
          .compileComponents();
    
        fixture = TestBed.createComponent(AppRootComponent);
    
        component = fixture.componentInstance;
        fixture.detectChanges();
      });
    
      it('should create', () => {
        expect(component).toBeTruthy();
      });
    });