From 110f2ab8d7bf5cf5fefee2fadb89f0e548dc0f4d Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 18 Mar 2019 21:21:56 +0800 Subject: Add logout. Fix a bug. The bug is it always goes to login page whether you have login or not before when user is presented in url. --- .../user/user-logout/user-logout.component.spec.ts | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Timeline/ClientApp/src/app/user/user-logout/user-logout.component.spec.ts (limited to 'Timeline/ClientApp/src/app/user/user-logout/user-logout.component.spec.ts') diff --git a/Timeline/ClientApp/src/app/user/user-logout/user-logout.component.spec.ts b/Timeline/ClientApp/src/app/user/user-logout/user-logout.component.spec.ts new file mode 100644 index 00000000..91369e01 --- /dev/null +++ b/Timeline/ClientApp/src/app/user/user-logout/user-logout.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { UserLogoutComponent } from './user-logout.component'; + +describe('UserLogoutComponent', () => { + let component: UserLogoutComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ UserLogoutComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(UserLogoutComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); -- cgit v1.2.3