Skip to content

Commit 9289cc4

Browse files
committed
Fixing tests
1 parent 1c266c4 commit 9289cc4

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

  • frontends/api/src/mitxonline/test-utils/factories

frontends/api/src/mitxonline/test-utils/factories/pages.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,12 @@ const coursePageItem: PartialFactory<CoursePageItem> = (override) => {
164164
],
165165
video_url: faker.internet.url(),
166166
what_you_learn: makeHTMLList(5),
167+
hyl_choice_realworld_learning: true,
168+
hyl_choice_learn_by_doing: true,
169+
hyl_choice_learn_from_others: false,
170+
hyl_choice_learn_on_demand: false,
171+
hyl_choice_ai_enabled_support: true,
172+
hyl_choice_stackable_credentials: true,
167173
}
168174
return mergeOverrides<CoursePageItem>(defaults, override)
169175
}
@@ -215,6 +221,12 @@ const programPageItem: PartialFactory<ProgramPageItem> = (override) => {
215221
faq_url: faker.internet.url(),
216222
about: makeHTMLParagraph(3),
217223
what_you_learn: makeHTMLList(5),
224+
hyl_choice_realworld_learning: true,
225+
hyl_choice_learn_by_doing: true,
226+
hyl_choice_learn_from_others: false,
227+
hyl_choice_learn_on_demand: false,
228+
hyl_choice_ai_enabled_support: true,
229+
hyl_choice_stackable_credentials: true,
218230
feature_image: featureImage(),
219231
video_url: faker.datatype.boolean() ? faker.internet.url() : null,
220232
faculty_section_title: "Meet your instructors",

0 commit comments

Comments
 (0)