diff --git a/src/editors/containers/ProblemEditor/components/EditProblemView/AnswerWidget/components/Feedback/FeedbackBox.test.jsx b/src/editors/containers/ProblemEditor/components/EditProblemView/AnswerWidget/components/Feedback/FeedbackBox.test.jsx deleted file mode 100644 index 2c1fa2dd5..000000000 --- a/src/editors/containers/ProblemEditor/components/EditProblemView/AnswerWidget/components/Feedback/FeedbackBox.test.jsx +++ /dev/null @@ -1,31 +0,0 @@ -import { shallow } from '@edx/react-unit-test-utils'; -import { FeedbackBox } from './FeedbackBox'; - -const answerWithFeedback = { - id: 'A', - title: 'Answer 1', - correct: true, - selectedFeedback: 'some feedback', - unselectedFeedback: 'unselectedFeedback', - problemType: 'sOMepRObleM', - images: {}, - isLibrary: false, - learningContextId: 'course+org+run', -}; - -const props = { - answer: answerWithFeedback, - intl: {}, -}; - -describe('FeedbackBox component', () => { - test('renders as expected with default props', () => { - expect(shallow().snapshot).toMatchSnapshot(); - }); - test('renders as expected with a numeric input problem', () => { - expect(shallow().snapshot).toMatchSnapshot(); - }); - test('renders as expected with a multi select problem', () => { - expect(shallow().snapshot).toMatchSnapshot(); - }); -}); diff --git a/src/editors/containers/ProblemEditor/components/EditProblemView/AnswerWidget/components/Feedback/FeedbackBox.test.tsx b/src/editors/containers/ProblemEditor/components/EditProblemView/AnswerWidget/components/Feedback/FeedbackBox.test.tsx new file mode 100644 index 000000000..7e2f21e76 --- /dev/null +++ b/src/editors/containers/ProblemEditor/components/EditProblemView/AnswerWidget/components/Feedback/FeedbackBox.test.tsx @@ -0,0 +1,49 @@ +import { render, screen, initializeMocks } from '@src/testUtils'; +import { FeedbackBox } from './FeedbackBox'; + +jest.mock('../../../../../../../sharedComponents/ExpandableTextArea', () => jest.fn(({ + id, value, setContent, placeholder, +}) => ( +