Skip to content

Commit

Permalink
⬆️(frontend) upgrade to faker 9.x
Browse files Browse the repository at this point in the history
A type issue was raised since faker 9.x
  • Loading branch information
jbpenrath committed Sep 26, 2024
1 parent c354f13 commit 92abf22
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/frontend/js/utils/test/factories/joanie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,12 @@ export const CourseRunFactory = factory((): CourseRun => {
call_to_action: 'enroll now',
text: CourseStateTextEnum.ENROLLMENT_OPENED,
}).one(),
languages: faker.helpers.multiple(faker.location.countryCode, { count: { min: 1, max: 5 } }),
languages: faker.helpers.multiple(() => faker.location.countryCode(), {
count: {
min: 1,
max: 5,
},
}),
};
});

Expand Down

0 comments on commit 92abf22

Please sign in to comment.