generated from graasp/graasp-repo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow duplicate words in fill the blanks (#181)
* fix: allow duplicate words in fill in the blanks
- Loading branch information
Showing
4 changed files
with
75 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { AppSetting } from '@graasp/sdk'; | ||
|
||
import { QuestionDataAppSetting } from '../../../src/components/types/types'; | ||
import { APP_SETTING_NAMES, QuestionType } from '../../../src/config/constants'; | ||
import { datesFactory } from '../../../src/data/factories'; | ||
import { mockItem } from '../../../src/data/items'; | ||
|
||
export const FILL_BLANKS_SETTING_WITH_DUPLICATED: QuestionDataAppSetting = { | ||
id: 'fill-blanks-id', | ||
name: APP_SETTING_NAMES.QUESTION, | ||
item: mockItem, | ||
...datesFactory, | ||
data: { | ||
type: QuestionType.FILL_BLANKS, | ||
questionId: 'fill-blanks-id1', | ||
question: 'My fill in the blanks question', | ||
text: 'Lorem <something> dolor sit amet, consectetur adipiscing elit. <something> ut fermentum nulla, sed <suscipit> sem.', | ||
explanation: 'my explanation for fill in the blanks', | ||
hints: 'my hints for fill in the blanks', | ||
}, | ||
}; | ||
|
||
export const APP_SETTINGS_FILL_THE_BLANKS_WITH_DUPLICATED: AppSetting[] = [ | ||
FILL_BLANKS_SETTING_WITH_DUPLICATED, | ||
{ | ||
id: 'order-list-id', | ||
name: APP_SETTING_NAMES.QUESTION_LIST, | ||
item: mockItem, | ||
...datesFactory, | ||
data: { | ||
list: [FILL_BLANKS_SETTING_WITH_DUPLICATED.data.questionId], | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters