mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
feat: fix ClaimedTaskActionsComponent test
This commit is contained in:
@@ -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<LogInPasswordComponent>;
|
||||
|
@@ -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<ClaimedTaskActionsComponent>;
|
||||
@@ -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 },
|
||||
|
Reference in New Issue
Block a user