Skip to content

Commit

Permalink
Fix quality-assurance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AAwouters committed Jan 24, 2024
1 parent b6248bf commit 1d02ef9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
import { ReplaceOperation } from 'fast-json-patch';
import { RequestEntry } from '../../../data/request-entry.model';
import { FindListOptions } from '../../../data/find-list-options.model';
import { ObjectCacheServiceStub } from '../../../../shared/testing/object-cache-service.stub';

describe('QualityAssuranceEventDataService', () => {
let scheduler: TestScheduler;
Expand Down Expand Up @@ -91,7 +92,7 @@ describe('QualityAssuranceEventDataService', () => {
buildFromRequestUUIDAndAwait: jasmine.createSpy('buildFromRequestUUIDAndAwait')
});

objectCache = {} as ObjectCacheService;
objectCache = new ObjectCacheServiceStub() as ObjectCacheService;
halService = jasmine.createSpyObj('halService', {
getEndpoint: cold('a|', { a: endpointURL })
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
} from '../../../../shared/mocks/notifications.mock';
import { RequestEntry } from '../../../data/request-entry.model';
import { QualityAssuranceSourceDataService } from './quality-assurance-source-data.service';
import { ObjectCacheServiceStub } from '../../../../shared/testing/object-cache-service.stub';

describe('QualityAssuranceSourceDataService', () => {
let scheduler: TestScheduler;
Expand Down Expand Up @@ -63,7 +64,7 @@ describe('QualityAssuranceSourceDataService', () => {
}),
});

objectCache = {} as ObjectCacheService;
objectCache = new ObjectCacheServiceStub() as ObjectCacheService;
halService = jasmine.createSpyObj('halService', {
getEndpoint: cold('a|', { a: endpointURL })
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
qualityAssuranceTopicObjectMorePid
} from '../../../../shared/mocks/notifications.mock';
import { RequestEntry } from '../../../data/request-entry.model';
import { ObjectCacheServiceStub } from '../../../../shared/testing/object-cache-service.stub';

describe('QualityAssuranceTopicDataService', () => {
let scheduler: TestScheduler;
Expand Down Expand Up @@ -63,7 +64,7 @@ describe('QualityAssuranceTopicDataService', () => {
}),
});

objectCache = {} as ObjectCacheService;
objectCache = new ObjectCacheServiceStub() as ObjectCacheService;
halService = jasmine.createSpyObj('halService', {
getEndpoint: cold('a|', { a: endpointURL })
});
Expand Down

0 comments on commit 1d02ef9

Please sign in to comment.