Skip to content

Instantly share code, notes, and snippets.

@mhkoca
Created April 24, 2019 11:12
Show Gist options
  • Select an option

  • Save mhkoca/7d64d279cf1454095cb7ce1a2e02cd05 to your computer and use it in GitHub Desktop.

Select an option

Save mhkoca/7d64d279cf1454095cb7ce1a2e02cd05 to your computer and use it in GitHub Desktop.
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { LoginComponent } from './login.component';
describe('LoginComponent', () => {
let component: LoginComponent;
let fixture: ComponentFixture<LoginComponent>;
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [ LoginComponent, Router],
imports :[
LoginComponent
],
providers:[
Router]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(LoginComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment