@@ -7,7 +7,6 @@ import { of as observableOf } from 'rxjs';
77import { TestScheduler } from 'rxjs/testing' ;
88
99import { getMockHrefOnlyDataService } from '../../shared/mocks/href-only-data.service.mock' ;
10- import { getMockRemoteDataBuildService } from '../../shared/mocks/remote-data-build.service.mock' ;
1110import { getMockRequestService } from '../../shared/mocks/request.service.mock' ;
1211import {
1312 createSuccessfulRemoteDataObject ,
@@ -18,7 +17,6 @@ import {
1817 createPaginatedList ,
1918 getFirstUsedArgumentOfSpyMethod ,
2019} from '../../shared/testing/utils.test' ;
21- import { RemoteDataBuildService } from '../cache/builders/remote-data-build.service' ;
2220import { RequestService } from '../data/request.service' ;
2321import { RequestEntry } from '../data/request-entry.model' ;
2422import { FlatBrowseDefinition } from '../shared/flat-browse-definition.model' ;
@@ -31,7 +29,6 @@ describe('BrowseService', () => {
3129 let scheduler : TestScheduler ;
3230 let service : BrowseService ;
3331 let requestService : RequestService ;
34- let rdbService : RemoteDataBuildService ;
3532
3633 const browsesEndpointURL = 'https://rest.api/browses' ;
3734 const halService : any = new HALEndpointServiceStub ( browsesEndpointURL ) ;
@@ -129,7 +126,6 @@ describe('BrowseService', () => {
129126 halService ,
130127 browseDefinitionDataService ,
131128 hrefOnlyDataService ,
132- rdbService ,
133129 ) ;
134130 }
135131
@@ -141,11 +137,9 @@ describe('BrowseService', () => {
141137
142138 beforeEach ( ( ) => {
143139 requestService = getMockRequestService ( getRequestEntry$ ( true ) ) ;
144- rdbService = getMockRemoteDataBuildService ( ) ;
145140 service = initTestService ( ) ;
146141 spyOn ( halService , 'getEndpoint' ) . and
147142 . returnValue ( hot ( '--a-' , { a : browsesEndpointURL } ) ) ;
148- spyOn ( rdbService , 'buildList' ) . and . callThrough ( ) ;
149143 } ) ;
150144
151145 it ( 'should call BrowseDefinitionDataService to create the RemoteData Observable' , ( ) => {
@@ -162,9 +156,7 @@ describe('BrowseService', () => {
162156
163157 beforeEach ( ( ) => {
164158 requestService = getMockRequestService ( getRequestEntry$ ( true ) ) ;
165- rdbService = getMockRemoteDataBuildService ( ) ;
166159 service = initTestService ( ) ;
167- spyOn ( rdbService , 'buildList' ) . and . callThrough ( ) ;
168160 } ) ;
169161
170162 describe ( 'when getBrowseEntriesFor is called with a valid browse definition id' , ( ) => {
@@ -215,7 +207,6 @@ describe('BrowseService', () => {
215207 describe ( 'if getBrowseDefinitions fires' , ( ) => {
216208 beforeEach ( ( ) => {
217209 requestService = getMockRequestService ( getRequestEntry$ ( true ) ) ;
218- rdbService = getMockRemoteDataBuildService ( ) ;
219210 service = initTestService ( ) ;
220211 spyOn ( service , 'getBrowseDefinitions' ) . and
221212 . returnValue ( hot ( '--a-' , {
@@ -270,7 +261,6 @@ describe('BrowseService', () => {
270261 describe ( 'if getBrowseDefinitions doesn\'t fire' , ( ) => {
271262 it ( 'should return undefined' , ( ) => {
272263 requestService = getMockRequestService ( getRequestEntry$ ( true ) ) ;
273- rdbService = getMockRemoteDataBuildService ( ) ;
274264 service = initTestService ( ) ;
275265 spyOn ( service , 'getBrowseDefinitions' ) . and
276266 . returnValue ( hot ( '----' ) ) ;
@@ -288,9 +278,7 @@ describe('BrowseService', () => {
288278 describe ( 'getFirstItemFor' , ( ) => {
289279 beforeEach ( ( ) => {
290280 requestService = getMockRequestService ( ) ;
291- rdbService = getMockRemoteDataBuildService ( ) ;
292281 service = initTestService ( ) ;
293- spyOn ( rdbService , 'buildList' ) . and . callThrough ( ) ;
294282 } ) ;
295283
296284 describe ( 'when getFirstItemFor is called with a valid browse definition id' , ( ) => {
0 commit comments