diff --git a/libs/api/repository/src/lib/gn4/gn4-repository.spec.ts b/libs/api/repository/src/lib/gn4/gn4-repository.spec.ts index 3906434766..5bdc63a6e8 100644 --- a/libs/api/repository/src/lib/gn4/gn4-repository.spec.ts +++ b/libs/api/repository/src/lib/gn4/gn4-repository.spec.ts @@ -36,7 +36,7 @@ class ElasticsearchServiceMock { } class SearchApiServiceMock { - search = jest.fn((bucket, payload) => { + search = jest.fn((bucket, relatedType, payload) => { const body = JSON.parse(payload) const count = body.size || 1234 const result: EsSearchResponse = { diff --git a/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.spec.ts b/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.spec.ts index 9678169e26..3aa7d852ba 100644 --- a/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.spec.ts +++ b/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.spec.ts @@ -220,6 +220,7 @@ describe.each(['4.2.2-00', '4.2.3-xx', '4.2.5-xx'])( it('call search service', () => { expect(searchService.search).toHaveBeenCalledWith( 'bucket', + null, JSON.stringify({ aggregations: { contact: { diff --git a/libs/feature/catalog/src/lib/sources/sources.service.spec.ts b/libs/feature/catalog/src/lib/sources/sources.service.spec.ts index ff4e6ef8a4..a71da69906 100644 --- a/libs/feature/catalog/src/lib/sources/sources.service.spec.ts +++ b/libs/feature/catalog/src/lib/sources/sources.service.spec.ts @@ -8,7 +8,7 @@ import { Observable } from 'rxjs' import { LangService } from '@geonetwork-ui/util/i18n' class SourcesApiServiceMock { - getSources1 = jest.fn(function () { + getSourcesByType = jest.fn(function () { return new Observable((observer) => { observer.next(SOURCES_FIXTURE) })