diff --git a/apps/server/src/infra/schulconnex-client/schulconnex-rest-client.spec.ts b/apps/server/src/infra/schulconnex-client/schulconnex-rest-client.spec.ts index 35d871c8ab6..4c4884a21cd 100644 --- a/apps/server/src/infra/schulconnex-client/schulconnex-rest-client.spec.ts +++ b/apps/server/src/infra/schulconnex-client/schulconnex-rest-client.spec.ts @@ -200,7 +200,7 @@ describe(SchulconnexRestClient.name, () => { describe('when requesting lizenz-info', () => { const setup = () => { const accessToken = 'accessToken'; - const response: SchulconnexLizenzInfoResponse[] = schulconnexLizenzInfoResponseFactory.build(); + const response: SchulconnexLizenzInfoResponse[] = schulconnexLizenzInfoResponseFactory.buildList(1); httpService.get.mockReturnValueOnce(of(axiosResponseFactory.build({ data: response }))); @@ -235,7 +235,7 @@ describe(SchulconnexRestClient.name, () => { const setup = () => { const accessToken = 'accessToken'; const customUrl = 'https://override.url/lizenz-info'; - const response: SchulconnexLizenzInfoResponse[] = schulconnexLizenzInfoResponseFactory.build(); + const response: SchulconnexLizenzInfoResponse[] = schulconnexLizenzInfoResponseFactory.buildList(1); httpService.get.mockReturnValueOnce(of(axiosResponseFactory.build({ data: response }))); diff --git a/apps/server/src/modules/provisioning/strategy/sanis/sanis.strategy.spec.ts b/apps/server/src/modules/provisioning/strategy/sanis/sanis.strategy.spec.ts index 1ff135e602d..5b380116894 100644 --- a/apps/server/src/modules/provisioning/strategy/sanis/sanis.strategy.spec.ts +++ b/apps/server/src/modules/provisioning/strategy/sanis/sanis.strategy.spec.ts @@ -173,7 +173,7 @@ describe(SanisProvisioningStrategy.name, () => { }), ]; const schulconnexLizenzInfoResponses: SchulconnexLizenzInfoResponse[] = - schulconnexLizenzInfoResponseFactory.build(); + schulconnexLizenzInfoResponseFactory.buildList(1); const schulconnexLizenzInfoResponse = schulconnexLizenzInfoResponses[0]; const licenses: ExternalLicenseDto[] = SchulconnexResponseMapper.mapToExternalLicenses([ schulconnexLizenzInfoResponse,