1
0

[DURACOM-271] Fix test after renaming

This commit is contained in:
Giuseppe Digilio
2024-06-11 18:02:21 +02:00
parent cfd3b3c79c
commit cee07c2e4a
2 changed files with 2 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ describe('SuggestionTargetDataService test', () => {
};
const searchFindBySourceMethod = 'findBySource';
const expected = new GetRequest(requestService.generateRequestId(), `${endpointURL}/search/${searchFindBySourceMethod}?source=testId`);
scheduler.schedule(() => service.getTargets('testId', options).subscribe());
scheduler.schedule(() => service.getTargetsBySource('testId', options).subscribe());
scheduler.flush();
expect(requestService.send).toHaveBeenCalledWith(expected, true);

View File

@@ -59,7 +59,7 @@ describe('SuggestionsService test', () => {
});
suggestionTargetDataService = jasmine.createSpyObj('suggestionTargetsDataService', {
getTargets: observableOf(null),
getTargetsBySource: observableOf(null),
findById: observableOf(null),
});