import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { LoaderComponent } from './loader.component'; describe('LoaderComponent', () => { let component: LoaderComponent; let fixture: ComponentFixture; beforeEach( async(() => { TestBed.configureTestingModule({ declarations: [LoaderComponent] }).compileComponents(); }) ); beforeEach(() => { fixture = TestBed.createComponent(LoaderComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });