Changeset View
Changeset View
Standalone View
Standalone View
src/app/login/login.component.spec.ts
Show All 40 Lines | beforeEach(() => { | ||||
const routeServiceStub = { | const routeServiceStub = { | ||||
resetRoutes: () => ({}) | resetRoutes: () => ({}) | ||||
}; | }; | ||||
const notificationServiceStub = { | const notificationServiceStub = { | ||||
getSuperNotifications: () => { | getSuperNotifications: () => { | ||||
return Observable.of( | return Observable.of( | ||||
new SuperNotification(1, '', '', | new SuperNotification(1, '', '', | ||||
new Array<Notification>( | new Array<Notification>( | ||||
new Notification('', | new Notification('', | ||||
new NotificationPost(0, | new NotificationPost(0, | ||||
new Author(0, '', '', '', false), 'test'), | new Author(0, '', '', '', false), 'test'), | ||||
new Array<number>(0))) | new Array<number>(0))) | ||||
)); | )); | ||||
} | } | ||||
}; | }; | ||||
TestBed.configureTestingModule({ | TestBed.configureTestingModule({ | ||||
declarations: [ LoginComponent ], | declarations: [ LoginComponent ], | ||||
schemas: [ NO_ERRORS_SCHEMA ], | schemas: [ NO_ERRORS_SCHEMA ], | ||||
providers: [ | providers: [ | ||||
Show All 35 Lines |