diff options
author | 杨宇千 <crupest@outlook.com> | 2019-04-13 15:47:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-13 15:47:40 +0800 |
commit | 825778f4058d107186be66af05b1f8d16cd1e32c (patch) | |
tree | 1aa37565aad734b604eb94ed3a62db2308f4b30d /Timeline/ClientApp/src/app/user/user-logout/user-logout.component.spec.ts | |
parent | 8c5e7069d2651fb6fae641dfe482d7a0910b3fd1 (diff) | |
parent | c2b9b32ada535bb09ee06ab0dfc0a3405e12485a (diff) | |
download | timeline-825778f4058d107186be66af05b1f8d16cd1e32c.tar.gz timeline-825778f4058d107186be66af05b1f8d16cd1e32c.tar.bz2 timeline-825778f4058d107186be66af05b1f8d16cd1e32c.zip |
Merge pull request #20 from crupest/separate
Separate front end and back end.
Diffstat (limited to 'Timeline/ClientApp/src/app/user/user-logout/user-logout.component.spec.ts')
-rw-r--r-- | Timeline/ClientApp/src/app/user/user-logout/user-logout.component.spec.ts | 35 |
1 files changed, 0 insertions, 35 deletions
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 deleted file mode 100644 index 855ea4a1..00000000 --- a/Timeline/ClientApp/src/app/user/user-logout/user-logout.component.spec.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { UserLogoutComponent } from './user-logout.component'; -import { InternalUserService } from '../internal-user-service/internal-user.service'; - -describe('UserLogoutComponent', () => { - let component: UserLogoutComponent; - let fixture: ComponentFixture<UserLogoutComponent>; - - let mockInternalUserService: jasmine.SpyObj<InternalUserService>; - - beforeEach(async(() => { - mockInternalUserService = jasmine.createSpyObj('InternalUserService', ['logout']); - - TestBed.configureTestingModule({ - declarations: [UserLogoutComponent], - providers: [{ provide: InternalUserService, useValue: mockInternalUserService }] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(UserLogoutComponent); - component = fixture.componentInstance; - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); - - it('should logout on init', () => { - fixture.detectChanges(); - expect(mockInternalUserService.logout).toHaveBeenCalled(); - }); -}); |