Skip to content

Commit

Permalink
temp test draft
Browse files Browse the repository at this point in the history
  • Loading branch information
leung018 committed Nov 10, 2023
1 parent df48234 commit 7b464c0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/app/components/mc/editor.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { fireEvent, render } from '@testing-library/react'
import { QuestionSetRepoFactory } from '../../../repo/question_set'
import { QuestionSetEditorUIService } from './editor'
import { MultipleChoice } from '../../../model/mc'

describe('QuestionSetEditor', () => {
it('should save question set', () => {
Expand Down Expand Up @@ -39,5 +40,20 @@ describe('QuestionSetEditor', () => {
expect(actualQuestionSet.name).toBe('Test name')
expect(actualQuestionSet.questions.length).toBe(1)
expect(actualQuestionSet.questions[0].title).toBe('Am I handsome?')
// expect(actualQuestionSet.questions[0].mc).toBe(
// new MultipleChoice({
// choices: [
// {
// answer: 'True',
// isFixedPosition: true,
// },
// {
// answer: 'False',
// isFixedPosition: false,
// },
// ],
// correctChoiceIndex: 0,
// }),
// )
})
})

0 comments on commit 7b464c0

Please sign in to comment.