import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { AlertComponent } from './alert.component'; import { AlertModule, BoxModule } from 'angular-admin-lte'; describe('AlertComponent', () => { let component: AlertComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ AlertModule, BoxModule ], declarations: [ AlertComponent ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(AlertComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });