diff --git a/src/app/shared/log-in/methods/password/log-in-password.component.spec.ts b/src/app/shared/log-in/methods/password/log-in-password.component.spec.ts index 1dc089b454..2fd434d3db 100644 --- a/src/app/shared/log-in/methods/password/log-in-password.component.spec.ts +++ b/src/app/shared/log-in/methods/password/log-in-password.component.spec.ts @@ -23,7 +23,7 @@ import { ActivatedRoute } from '@angular/router'; import { getMockThemeService } from '../../../mocks/theme-service.mock'; import { ThemeService } from '../../../theme-support/theme.service'; -fdescribe('LogInPasswordComponent', () => { +describe('LogInPasswordComponent', () => { let component: LogInPasswordComponent; let fixture: ComponentFixture; diff --git a/src/app/shared/mydspace-actions/claimed-task/claimed-task-actions.component.spec.ts b/src/app/shared/mydspace-actions/claimed-task/claimed-task-actions.component.spec.ts index 008040d0dd..a2d198f2bc 100644 --- a/src/app/shared/mydspace-actions/claimed-task/claimed-task-actions.component.spec.ts +++ b/src/app/shared/mydspace-actions/claimed-task/claimed-task-actions.component.spec.ts @@ -1,6 +1,6 @@ import { ChangeDetectionStrategy, Injector, NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { Router } from '@angular/router'; +import { ActivatedRoute, Router } from '@angular/router'; import { of as observableOf } from 'rxjs'; import { TranslateLoader, TranslateModule } from '@ngx-translate/core'; @@ -23,6 +23,7 @@ import { WorkflowAction } from '../../../core/tasks/models/workflow-action-objec import { VarDirective } from '../../utils/var.directive'; import { createSuccessfulRemoteDataObject, createSuccessfulRemoteDataObject$ } from '../../remote-data.utils'; import { By } from '@angular/platform-browser'; +import { ActivatedRouteStub } from '../../testing/active-router.stub'; let component: ClaimedTaskActionsComponent; let fixture: ComponentFixture; @@ -108,6 +109,7 @@ describe('ClaimedTaskActionsComponent', () => { { provide: Injector, useValue: {} }, { provide: NotificationsService, useValue: new NotificationsServiceStub() }, { provide: Router, useValue: new RouterStub() }, + { provide: ActivatedRoute, useValue: new ActivatedRouteStub() }, { provide: ClaimedTaskDataService, useValue: mockDataService }, { provide: SearchService, useValue: searchService }, { provide: RequestService, useValue: requestServce },