Skip to content

Commit

Permalink
fix factory
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinOehlerkingCap committed Jun 14, 2024
1 parent 48083ae commit c03c47c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 })));

Expand Down Expand Up @@ -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 })));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c03c47c

Please sign in to comment.