import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { AuthService } from './auth.service'; import { AuthComponent } from './auth.component'; import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core'; describe('AuthComponent', () => { let component: AuthComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ schemas: [NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA], declarations: [AuthComponent], providers: [{ provide: AuthService, useValue: {} }] }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(AuthComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });