diff options
author | crupest <crupest@outlook.com> | 2019-02-21 23:36:41 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-02-21 23:36:41 +0800 |
commit | b694d7a3e1b04bb942e5ba8224762d706f98a371 (patch) | |
tree | ce0cd6249f2c09797bca65cfb9dbc81f6c334d2e /Timeline/ClientApp/src/app/home | |
parent | 0ed96f534f75ebc2a7bdbec031a4674368d0420a (diff) | |
download | timeline-b694d7a3e1b04bb942e5ba8224762d706f98a371.tar.gz timeline-b694d7a3e1b04bb942e5ba8224762d706f98a371.tar.bz2 timeline-b694d7a3e1b04bb942e5ba8224762d706f98a371.zip |
Add unit test.
Diffstat (limited to 'Timeline/ClientApp/src/app/home')
-rw-r--r-- | Timeline/ClientApp/src/app/home/home.component.spec.ts | 5 | ||||
-rw-r--r-- | Timeline/ClientApp/src/app/home/home.component.ts | 13 |
2 files changed, 3 insertions, 15 deletions
diff --git a/Timeline/ClientApp/src/app/home/home.component.spec.ts b/Timeline/ClientApp/src/app/home/home.component.spec.ts index 490e81bd..74bedd08 100644 --- a/Timeline/ClientApp/src/app/home/home.component.spec.ts +++ b/Timeline/ClientApp/src/app/home/home.component.spec.ts @@ -2,15 +2,16 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { HomeComponent } from './home.component'; + describe('HomeComponent', () => { let component: HomeComponent; let fixture: ComponentFixture<HomeComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ HomeComponent ] + declarations: [HomeComponent], }) - .compileComponents(); + .compileComponents(); })); beforeEach(() => { diff --git a/Timeline/ClientApp/src/app/home/home.component.ts b/Timeline/ClientApp/src/app/home/home.component.ts index 873aee7f..2b16eef7 100644 --- a/Timeline/ClientApp/src/app/home/home.component.ts +++ b/Timeline/ClientApp/src/app/home/home.component.ts @@ -1,10 +1,4 @@ import { Component, OnInit } from '@angular/core'; -import { HttpClient } from '@angular/common/http'; - -class LoginInfo { - username = ''; - password = ''; -} @Component({ selector: 'app-home', @@ -13,15 +7,8 @@ class LoginInfo { }) export class HomeComponent implements OnInit { - loginInfo = new LoginInfo(); message = ''; - constructor(/* private http: HttpClient */) { } - ngOnInit() { } - - tryLogin() { - alert('Not implemented!!!'); - } } |