mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
111326: update to new lint standards
This commit is contained in:
@@ -7,10 +7,10 @@ import {
|
|||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
import { of as observableOf } from 'rxjs';
|
import { of as observableOf } from 'rxjs';
|
||||||
|
import { ServerResponseService } from 'src/app/core/services/server-response.service';
|
||||||
|
|
||||||
import { ActivatedRouteStub } from '../../shared/testing/active-router.stub';
|
import { ActivatedRouteStub } from '../../shared/testing/active-router.stub';
|
||||||
import { ObjectNotFoundComponent } from './objectnotfound.component';
|
import { ObjectNotFoundComponent } from './objectnotfound.component';
|
||||||
import { ServerResponseService } from 'src/app/core/services/server-response.service';
|
|
||||||
|
|
||||||
describe('ObjectNotFoundComponent', () => {
|
describe('ObjectNotFoundComponent', () => {
|
||||||
let comp: ObjectNotFoundComponent;
|
let comp: ObjectNotFoundComponent;
|
||||||
@@ -23,7 +23,7 @@ describe('ObjectNotFoundComponent', () => {
|
|||||||
params: observableOf({ id: testUUID, idType: uuidType }),
|
params: observableOf({ id: testUUID, idType: uuidType }),
|
||||||
});
|
});
|
||||||
const serverResponseServiceStub = jasmine.createSpyObj('ServerResponseService', {
|
const serverResponseServiceStub = jasmine.createSpyObj('ServerResponseService', {
|
||||||
setNotFound: jasmine.createSpy('setNotFound')
|
setNotFound: jasmine.createSpy('setNotFound'),
|
||||||
});
|
});
|
||||||
|
|
||||||
const activatedRouteStubHandle = Object.assign(new ActivatedRouteStub(), {
|
const activatedRouteStubHandle = Object.assign(new ActivatedRouteStub(), {
|
||||||
@@ -35,8 +35,8 @@ describe('ObjectNotFoundComponent', () => {
|
|||||||
imports: [
|
imports: [
|
||||||
TranslateModule.forRoot(),
|
TranslateModule.forRoot(),
|
||||||
], providers: [
|
], providers: [
|
||||||
{ provide: ServerResponseService, useValue: serverResponseServiceStub} ,
|
{ provide: ServerResponseService, useValue: serverResponseServiceStub } ,
|
||||||
{ provide: ActivatedRoute, useValue: activatedRouteStub }
|
{ provide: ActivatedRoute, useValue: activatedRouteStub },
|
||||||
],
|
],
|
||||||
declarations: [ObjectNotFoundComponent],
|
declarations: [ObjectNotFoundComponent],
|
||||||
schemas: [NO_ERRORS_SCHEMA],
|
schemas: [NO_ERRORS_SCHEMA],
|
||||||
@@ -71,7 +71,7 @@ describe('ObjectNotFoundComponent', () => {
|
|||||||
TranslateModule.forRoot(),
|
TranslateModule.forRoot(),
|
||||||
], providers: [
|
], providers: [
|
||||||
{ provide: ServerResponseService, useValue: serverResponseServiceStub },
|
{ provide: ServerResponseService, useValue: serverResponseServiceStub },
|
||||||
{ provide: ActivatedRoute, useValue: activatedRouteStubHandle }
|
{ provide: ActivatedRoute, useValue: activatedRouteStubHandle },
|
||||||
],
|
],
|
||||||
declarations: [ObjectNotFoundComponent],
|
declarations: [ObjectNotFoundComponent],
|
||||||
schemas: [NO_ERRORS_SCHEMA],
|
schemas: [NO_ERRORS_SCHEMA],
|
||||||
|
Reference in New Issue
Block a user