Created
April 24, 2019 11:12
-
-
Save mhkoca/7d64d279cf1454095cb7ce1a2e02cd05 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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