Skip to content

Commit

Permalink
fix: coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
zawan-ila committed Aug 2, 2024
1 parent d848ebe commit 6963be2
Show file tree
Hide file tree
Showing 2 changed files with 1,405 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/components/EditCoursePage/EditCourseForm.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -474,4 +474,24 @@ describe('BaseEditCourseForm', () => {
const fields = component.find({ name: 'imageSrc' });
expect(fields).toHaveLength(1);
});

it('renders html correctly while fetching collaborator options', () => {
const component = shallow(<BaseEditCourseForm
handleSubmit={() => null}
initialValues={{
title: initialValuesFull.title,
}}
title={initialValuesFull.title}
number="Test101x"
courseStatuses={[UNPUBLISHED]}
courseInfo={courseInfo}
courseOptions={courseOptions}
courseRunOptions={courseRunOptions}
uuid={initialValuesFull.uuid}
type={initialValuesFull.type}
id="edit-course-form"
collaboratorOptions={{data: {}}}

Check failure on line 493 in src/components/EditCoursePage/EditCourseForm.test.jsx

View workflow job for this annotation

GitHub Actions / tests

A space is required after '{'

Check failure on line 493 in src/components/EditCoursePage/EditCourseForm.test.jsx

View workflow job for this annotation

GitHub Actions / tests

A space is required before '}'
/>);
expect(shallowToJson(component)).toMatchSnapshot();
});
});
Loading

0 comments on commit 6963be2

Please sign in to comment.