@coorpacademy/app-review 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/actions/api/fetch-skills.d.ts +4 -6
- package/es/actions/api/fetch-skills.js +7 -4
- package/es/actions/api/fetch-slide.d.ts +14 -7
- package/es/actions/api/fetch-slide.js +22 -19
- package/es/actions/api/post-progression.d.ts +4 -6
- package/es/actions/api/post-progression.js +13 -8
- package/es/actions/api/test/create-test-store.d.ts +5 -0
- package/es/actions/api/test/create-test-store.js +16 -0
- package/es/actions/api/test/fetch-skills.test.js +54 -0
- package/es/actions/api/test/fetch-slide.test.js +61 -0
- package/es/actions/api/test/post-progression.test.d.ts +1 -0
- package/es/actions/api/test/post-progression.test.js +102 -0
- package/es/actions/ui/answers.d.ts +7 -0
- package/es/actions/ui/answers.js +7 -0
- package/es/fixtures/temp-fixture.d.ts +1 -1
- package/es/index.js +10 -16
- package/es/reducers/data/index.d.ts +1 -1
- package/es/reducers/data/slides.d.ts +2 -2
- package/es/reducers/data/slides.js +5 -1
- package/es/reducers/data/test/progression.test.d.ts +1 -0
- package/es/reducers/data/test/progression.test.js +38 -0
- package/es/reducers/data/test/skills.test.d.ts +1 -0
- package/es/reducers/data/test/skills.test.js +12 -0
- package/es/reducers/data/test/slides.test.d.ts +1 -0
- package/es/reducers/data/test/slides.test.js +20 -0
- package/es/reducers/data/test/token.test.d.ts +1 -0
- package/es/reducers/data/test/token.test.js +11 -0
- package/es/reducers/index.d.ts +2 -2
- package/es/reducers/ui/answers.d.ts +4 -0
- package/es/reducers/ui/answers.js +13 -0
- package/es/reducers/ui/index.d.ts +4 -4
- package/es/reducers/ui/index.js +2 -2
- package/es/reducers/ui/test/answers.test.d.ts +1 -0
- package/es/reducers/ui/test/answers.test.js +11 -0
- package/es/reducers/ui/test/current-slide-ref.test.d.ts +1 -0
- package/es/reducers/ui/test/current-slide-ref.test.js +12 -0
- package/es/reducers/ui/test/navigation.test.d.ts +1 -0
- package/es/reducers/ui/test/navigation.test.js +15 -0
- package/es/services/fetch-slide.js +1 -1
- package/es/services/index.js +3 -1
- package/es/services/post-answer.d.ts +2 -0
- package/es/services/post-answer.js +18 -0
- package/es/services/test/fetch-slide.test.d.ts +1 -0
- package/es/services/test/fetch-slide.test.js +22 -0
- package/es/services/test/post-answer.test.d.ts +1 -0
- package/es/services/test/post-answer.test.js +57 -0
- package/es/services/test/post-progression.test.js +9 -1
- package/es/test/util/services.mock.js +37 -7
- package/es/types/common.d.ts +22 -8
- package/es/views/slides/index.d.ts +78 -2
- package/es/views/slides/index.js +70 -4
- package/es/views/slides/map-api-slide-to-ui.d.ts +8 -0
- package/es/views/slides/map-api-slide-to-ui.js +172 -0
- package/{lib/helpers → es/views/slides}/test/fixtures/free-text.d.ts +1 -1
- package/es/views/slides/test/fixtures/free-text.js +38 -0
- package/es/{helpers → views/slides}/test/fixtures/qcm-drag.d.ts +1 -1
- package/es/views/slides/test/fixtures/qcm-drag.js +108 -0
- package/es/{helpers → views/slides}/test/fixtures/qcm-graphic.d.ts +1 -1
- package/es/views/slides/test/fixtures/qcm-graphic.js +88 -0
- package/es/{helpers → views/slides}/test/fixtures/qcm.d.ts +1 -1
- package/es/{helpers → views/slides}/test/fixtures/qcm.js +5 -1
- package/es/{helpers → views/slides}/test/fixtures/select-template.d.ts +1 -1
- package/es/views/slides/test/fixtures/select-template.js +92 -0
- package/es/{helpers → views/slides}/test/fixtures/slider.d.ts +1 -1
- package/es/views/slides/test/fixtures/slider.js +36 -0
- package/es/{helpers → views/slides}/test/fixtures/text-template.d.ts +1 -1
- package/es/{helpers → views/slides}/test/fixtures/text-template.js +5 -1
- package/es/views/slides/test/map-api-slide-to-ui.test.d.ts +1 -0
- package/es/{helpers → views/slides}/test/map-api-slide-to-ui.test.js +19 -9
- package/lib/actions/api/fetch-skills.d.ts +4 -6
- package/lib/actions/api/fetch-skills.js +55 -7
- package/lib/actions/api/fetch-slide.d.ts +14 -7
- package/lib/actions/api/fetch-slide.js +70 -20
- package/lib/actions/api/post-progression.d.ts +4 -6
- package/lib/actions/api/post-progression.js +63 -9
- package/lib/actions/api/test/create-test-store.d.ts +5 -0
- package/lib/actions/api/test/create-test-store.js +18 -0
- package/lib/actions/api/test/fetch-skills.test.d.ts +1 -0
- package/lib/actions/api/test/fetch-skills.test.js +113 -0
- package/lib/actions/api/test/fetch-slide.test.d.ts +1 -0
- package/lib/actions/api/test/fetch-slide.test.js +120 -0
- package/lib/actions/api/test/post-progression.test.d.ts +1 -0
- package/lib/actions/api/test/post-progression.test.js +160 -0
- package/lib/actions/ui/answers.d.ts +7 -0
- package/lib/actions/ui/answers.js +9 -0
- package/lib/fixtures/temp-fixture.d.ts +1 -1
- package/lib/index.js +21 -18
- package/lib/reducers/data/index.d.ts +1 -1
- package/lib/reducers/data/slides.d.ts +2 -2
- package/lib/reducers/data/slides.js +5 -1
- package/lib/reducers/data/test/progression.test.d.ts +1 -0
- package/lib/reducers/data/test/progression.test.js +38 -0
- package/lib/reducers/data/test/skills.test.d.ts +1 -0
- package/lib/reducers/data/test/skills.test.js +12 -0
- package/lib/reducers/data/test/slides.test.d.ts +1 -0
- package/lib/reducers/data/test/slides.test.js +20 -0
- package/lib/reducers/data/test/token.test.d.ts +1 -0
- package/lib/reducers/data/test/token.test.js +11 -0
- package/lib/reducers/index.d.ts +2 -2
- package/lib/reducers/ui/answers.d.ts +4 -0
- package/lib/reducers/ui/answers.js +14 -0
- package/lib/reducers/ui/index.d.ts +4 -4
- package/lib/reducers/ui/index.js +2 -2
- package/lib/reducers/ui/test/answers.test.d.ts +1 -0
- package/lib/reducers/ui/test/answers.test.js +11 -0
- package/lib/reducers/ui/test/current-slide-ref.test.d.ts +1 -0
- package/lib/reducers/ui/test/current-slide-ref.test.js +12 -0
- package/lib/reducers/ui/test/navigation.test.d.ts +1 -0
- package/lib/reducers/ui/test/navigation.test.js +15 -0
- package/lib/services/fetch-slide.js +1 -1
- package/lib/services/index.js +3 -1
- package/lib/services/post-answer.d.ts +2 -0
- package/lib/services/post-answer.js +62 -0
- package/lib/services/test/fetch-slide.test.d.ts +1 -0
- package/lib/services/test/fetch-slide.test.js +76 -0
- package/lib/services/test/post-answer.test.d.ts +1 -0
- package/lib/services/test/post-answer.test.js +111 -0
- package/lib/services/test/post-progression.test.js +9 -1
- package/lib/test/util/services.mock.js +37 -7
- package/lib/types/common.d.ts +22 -8
- package/lib/views/slides/index.d.ts +78 -2
- package/lib/views/slides/index.js +70 -4
- package/lib/views/slides/map-api-slide-to-ui.d.ts +8 -0
- package/lib/views/slides/map-api-slide-to-ui.js +178 -0
- package/{es/helpers → lib/views/slides}/test/fixtures/free-text.d.ts +1 -1
- package/lib/views/slides/test/fixtures/free-text.js +38 -0
- package/lib/{helpers → views/slides}/test/fixtures/qcm-drag.d.ts +1 -1
- package/lib/views/slides/test/fixtures/qcm-drag.js +108 -0
- package/lib/{helpers → views/slides}/test/fixtures/qcm-graphic.d.ts +1 -1
- package/lib/views/slides/test/fixtures/qcm-graphic.js +88 -0
- package/lib/{helpers → views/slides}/test/fixtures/qcm.d.ts +1 -1
- package/lib/{helpers → views/slides}/test/fixtures/qcm.js +5 -1
- package/lib/{helpers → views/slides}/test/fixtures/select-template.d.ts +1 -1
- package/lib/views/slides/test/fixtures/select-template.js +92 -0
- package/lib/{helpers → views/slides}/test/fixtures/slider.d.ts +1 -1
- package/lib/views/slides/test/fixtures/slider.js +36 -0
- package/lib/{helpers → views/slides}/test/fixtures/text-template.d.ts +1 -1
- package/lib/{helpers → views/slides}/test/fixtures/text-template.js +5 -1
- package/lib/views/slides/test/map-api-slide-to-ui.test.d.ts +1 -0
- package/lib/{helpers → views/slides}/test/map-api-slide-to-ui.test.js +19 -9
- package/package.json +3 -3
- package/src/actions/api/fetch-skills.ts +12 -12
- package/src/actions/api/fetch-slide.ts +33 -29
- package/src/actions/api/post-progression.ts +18 -21
- package/src/actions/api/test/create-test-store.ts +25 -0
- package/src/actions/api/test/fetch-skills.test.ts +70 -0
- package/src/actions/api/test/fetch-slide.test.ts +77 -0
- package/src/actions/api/test/post-progression.test.ts +119 -0
- package/src/actions/ui/answers.ts +16 -0
- package/src/fixtures/temp-fixture.ts +1 -1
- package/src/index.tsx +14 -29
- package/src/reducers/data/index.ts +1 -1
- package/src/reducers/data/slides.ts +11 -2
- package/src/reducers/data/test/progression.test.ts +42 -0
- package/src/reducers/data/test/skills.test.ts +14 -0
- package/src/reducers/data/test/slides.test.ts +26 -0
- package/src/reducers/data/test/token.test.ts +13 -0
- package/src/reducers/ui/answers.ts +19 -0
- package/src/reducers/ui/index.ts +3 -3
- package/src/reducers/ui/test/answers.test.ts +13 -0
- package/src/reducers/ui/test/current-slide-ref.test.ts +14 -0
- package/src/reducers/ui/test/navigation.test.ts +19 -0
- package/src/services/fetch-slide.ts +1 -1
- package/src/services/index.ts +3 -1
- package/src/services/post-answer.ts +27 -0
- package/src/services/test/fetch-slide.test.ts +30 -0
- package/src/services/test/post-answer.test.ts +68 -0
- package/src/services/test/post-progression.test.ts +9 -1
- package/src/test/util/services.mock.ts +37 -7
- package/src/types/common.ts +34 -14
- package/src/views/slides/index.ts +164 -5
- package/src/views/slides/map-api-slide-to-ui.ts +251 -0
- package/src/views/slides/test/fixtures/free-text.ts +43 -0
- package/src/views/slides/test/fixtures/qcm-drag.ts +111 -0
- package/src/views/slides/test/fixtures/qcm-graphic.ts +94 -0
- package/src/{helpers → views/slides}/test/fixtures/qcm.ts +6 -2
- package/src/views/slides/test/fixtures/select-template.ts +98 -0
- package/src/views/slides/test/fixtures/slider.ts +41 -0
- package/src/{helpers → views/slides}/test/fixtures/text-template.ts +6 -2
- package/src/{helpers → views/slides}/test/map-api-slide-to-ui.test.ts +21 -10
- package/es/helpers/map-api-slide-to-ui.d.ts +0 -11
- package/es/helpers/map-api-slide-to-ui.js +0 -193
- package/es/helpers/test/fixtures/free-text.js +0 -30
- package/es/helpers/test/fixtures/qcm-drag.js +0 -112
- package/es/helpers/test/fixtures/qcm-graphic.js +0 -76
- package/es/helpers/test/fixtures/select-template.js +0 -94
- package/es/helpers/test/fixtures/slider.js +0 -33
- package/es/reducers/ui/slides.d.ts +0 -9
- package/es/reducers/ui/slides.js +0 -42
- package/es/types/views/slides.d.ts +0 -74
- package/es/types/views/slides.js +0 -6
- package/lib/helpers/map-api-slide-to-ui.d.ts +0 -11
- package/lib/helpers/map-api-slide-to-ui.js +0 -201
- package/lib/helpers/test/fixtures/free-text.js +0 -30
- package/lib/helpers/test/fixtures/qcm-drag.js +0 -112
- package/lib/helpers/test/fixtures/qcm-graphic.js +0 -76
- package/lib/helpers/test/fixtures/select-template.js +0 -94
- package/lib/helpers/test/fixtures/slider.js +0 -33
- package/lib/reducers/ui/slides.d.ts +0 -9
- package/lib/reducers/ui/slides.js +0 -43
- package/lib/types/views/slides.d.ts +0 -74
- package/lib/types/views/slides.js +0 -6
- package/src/helpers/map-api-slide-to-ui.ts +0 -279
- package/src/helpers/test/fixtures/free-text.ts +0 -33
- package/src/helpers/test/fixtures/qcm-drag.ts +0 -115
- package/src/helpers/test/fixtures/qcm-graphic.ts +0 -79
- package/src/helpers/test/fixtures/select-template.ts +0 -97
- package/src/helpers/test/fixtures/slider.ts +0 -36
- package/src/reducers/ui/slides.ts +0 -58
- package/src/types/views/slides.ts +0 -90
- /package/es/{helpers/test/map-api-slide-to-ui.test.d.ts → actions/api/test/fetch-skills.test.d.ts} +0 -0
- /package/{lib/helpers/test/map-api-slide-to-ui.test.d.ts → es/actions/api/test/fetch-slide.test.d.ts} +0 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { concat, divide, get, getOr, head, includes, indexOf, isEmpty, map, rangeStep, size, toInteger } from 'lodash/fp';
|
|
2
|
+
import { editAnswer } from '../../actions/ui/answers';
|
|
3
|
+
const qcmProps = (question) => {
|
|
4
|
+
// TODO: EDIT_CHOICES -> getAnswerValues
|
|
5
|
+
const answers = [];
|
|
6
|
+
return {
|
|
7
|
+
type: 'qcm',
|
|
8
|
+
answers: map(choice => ({
|
|
9
|
+
title: choice.label,
|
|
10
|
+
selected: includes(choice.label, answers),
|
|
11
|
+
// TODO: EDIT_CHOICES
|
|
12
|
+
// eslint-disable-next-line no-console
|
|
13
|
+
onClick: () => console.log('TODO: on choice click'),
|
|
14
|
+
ariaLabel: choice.label
|
|
15
|
+
}),
|
|
16
|
+
// TODO: EDIT_CHOICES -> getChoices
|
|
17
|
+
question.content.choices)
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
const qcmDragProps = (question) => {
|
|
21
|
+
// TODO: EDIT_CHOICES -> getAnswerValues
|
|
22
|
+
const answers = [];
|
|
23
|
+
return {
|
|
24
|
+
type: 'qcmDrag',
|
|
25
|
+
answers: map(choice => {
|
|
26
|
+
const indexInAnswer = indexOf(choice.label, answers);
|
|
27
|
+
return {
|
|
28
|
+
title: choice.label,
|
|
29
|
+
selected: includes(choice.label, answers),
|
|
30
|
+
order: indexInAnswer,
|
|
31
|
+
// TODO: EDIT_CHOICES
|
|
32
|
+
// eslint-disable-next-line no-console
|
|
33
|
+
onClick: () => console.log('TODO: on choice click')
|
|
34
|
+
};
|
|
35
|
+
// TODO: EDIT_CHOICES -> getChoices
|
|
36
|
+
}, question.content.choices)
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
const qcmGraphicProps = (question) => {
|
|
40
|
+
// mock the answers
|
|
41
|
+
// TODO: EDIT_CHOICES -> getAnswerValues
|
|
42
|
+
const answers = [];
|
|
43
|
+
return {
|
|
44
|
+
type: 'qcmGraphic',
|
|
45
|
+
answers: map(choice => ({
|
|
46
|
+
title: choice.label,
|
|
47
|
+
image: get('media.src.0.url', choice),
|
|
48
|
+
selected: includes(choice.label, answers),
|
|
49
|
+
// TODO: EDIT_CHOICES
|
|
50
|
+
// eslint-disable-next-line no-console
|
|
51
|
+
onClick: () => console.log('TODO: on choice click')
|
|
52
|
+
}),
|
|
53
|
+
// TODO: EDIT_CHOICES -> getChoices
|
|
54
|
+
question.content.choices)
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
const templateTextProps = (choice, index) => {
|
|
58
|
+
// TODO: EDIT_CHOICES -> getAnswerValues
|
|
59
|
+
const answers = [];
|
|
60
|
+
return {
|
|
61
|
+
type: 'text',
|
|
62
|
+
name: getOr('', 'name', choice),
|
|
63
|
+
placeholder: 'Type here',
|
|
64
|
+
value: get(index, answers),
|
|
65
|
+
// TODO: EDIT_CHOICES
|
|
66
|
+
// eslint-disable-next-line no-console
|
|
67
|
+
onChange: () => console.log('TODO: on choice change')
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
const templateSelectProps = (choice, index) => {
|
|
71
|
+
// TODO: EDIT_CHOICES -> getAnswerValues
|
|
72
|
+
const answers = [];
|
|
73
|
+
const answer = get(index, answers);
|
|
74
|
+
const temporaryOption = {
|
|
75
|
+
name: 'Select an answer',
|
|
76
|
+
value: '',
|
|
77
|
+
validOption: false,
|
|
78
|
+
selected: true
|
|
79
|
+
};
|
|
80
|
+
const selectOptions = choice.items.map(item => {
|
|
81
|
+
const itemText = getOr('', 'text', item);
|
|
82
|
+
return {
|
|
83
|
+
name: itemText,
|
|
84
|
+
value: itemText,
|
|
85
|
+
validOption: true,
|
|
86
|
+
selected: itemText === answer
|
|
87
|
+
};
|
|
88
|
+
});
|
|
89
|
+
return {
|
|
90
|
+
type: 'select',
|
|
91
|
+
name: getOr('', 'name', choice),
|
|
92
|
+
// TODO: EDIT_CHOICES
|
|
93
|
+
// eslint-disable-next-line no-console
|
|
94
|
+
onChange: () => console.log('TODO: on choice change'),
|
|
95
|
+
options: isEmpty(answer) ? concat([temporaryOption], selectOptions) : selectOptions
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
const templateProps = (question) => {
|
|
99
|
+
// TODO: EDIT_CHOICES -> getChoices
|
|
100
|
+
const choices = question.content.choices;
|
|
101
|
+
return {
|
|
102
|
+
type: 'template',
|
|
103
|
+
template: get('content.template', question),
|
|
104
|
+
answers: choices.map((choice, index) => choice.type === 'text' ? templateTextProps(choice, index) : templateSelectProps(choice, index))
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
const basicProps = (dispatch) => (answers, question) => {
|
|
108
|
+
return {
|
|
109
|
+
type: 'freeText',
|
|
110
|
+
placeholder: question.content.placeholder || '',
|
|
111
|
+
value: answers[0] || '',
|
|
112
|
+
onChange: (text) => {
|
|
113
|
+
// eslint-disable-next-line no-console
|
|
114
|
+
console.log(text);
|
|
115
|
+
dispatch(editAnswer(text));
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
const sliderProps = (question) => {
|
|
120
|
+
const values = rangeStep(getOr(1, 'content.step', question), get('content.min', question), get('content.max', question) + 1
|
|
121
|
+
// Lodash doesn't infer the type very well here
|
|
122
|
+
);
|
|
123
|
+
// TODO: EDIT_CHOICES -> getAnswerValues
|
|
124
|
+
const answers = [];
|
|
125
|
+
const stateValue = head(answers) || question.content.min;
|
|
126
|
+
const currentValue = toInteger(stateValue);
|
|
127
|
+
const indexValue = indexOf(currentValue, values);
|
|
128
|
+
const sliderPosition = divide(indexValue, size(values) - 1);
|
|
129
|
+
const unitLabel = get('content.unitLabel', question);
|
|
130
|
+
return {
|
|
131
|
+
type: 'slider',
|
|
132
|
+
placeholder: question.explanation,
|
|
133
|
+
minLabel: `${question.content.min} ${unitLabel}`,
|
|
134
|
+
maxLabel: `${question.content.max} ${unitLabel}`,
|
|
135
|
+
title: `${currentValue} ${question.content.unitLabel}`,
|
|
136
|
+
value: sliderPosition,
|
|
137
|
+
// TODO: EDIT_CHOICES
|
|
138
|
+
// eslint-disable-next-line no-console
|
|
139
|
+
onChange: () => console.log('TODO: on choice change')
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
export const getQuestionType = (question) => question.type;
|
|
143
|
+
const getHelp = (slide) => get('question.explanation', slide);
|
|
144
|
+
const getAnswerUIModel = (question, answers, dispatch) => {
|
|
145
|
+
const type = getQuestionType(question);
|
|
146
|
+
switch (type) {
|
|
147
|
+
case 'qcm':
|
|
148
|
+
return qcmProps(question);
|
|
149
|
+
case 'qcmGraphic':
|
|
150
|
+
return qcmGraphicProps(question);
|
|
151
|
+
case 'qcmDrag':
|
|
152
|
+
return qcmDragProps(question);
|
|
153
|
+
case 'basic':
|
|
154
|
+
return basicProps(dispatch)(answers, question);
|
|
155
|
+
case 'template':
|
|
156
|
+
return templateProps(question);
|
|
157
|
+
case 'slider':
|
|
158
|
+
return sliderProps(question);
|
|
159
|
+
default:
|
|
160
|
+
throw new Error(`${type} is not an handled question.type`);
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
export const mapApiSlideToUi = (dispatch) => (slide, answers) => {
|
|
164
|
+
if (!slide) {
|
|
165
|
+
throw new Error('no slide was found');
|
|
166
|
+
}
|
|
167
|
+
const questionText = getOr('', 'question.header', slide);
|
|
168
|
+
return {
|
|
169
|
+
questionText,
|
|
170
|
+
answerUI: { model: getAnswerUIModel(slide.question, answers, dispatch), help: getHelp(slide) }
|
|
171
|
+
};
|
|
172
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import noop from 'lodash/fp/noop';
|
|
2
|
+
export const freeTextSlide = {
|
|
3
|
+
question: {
|
|
4
|
+
content: {
|
|
5
|
+
media: {
|
|
6
|
+
src: [],
|
|
7
|
+
posters: [],
|
|
8
|
+
subtitles: []
|
|
9
|
+
},
|
|
10
|
+
label: '',
|
|
11
|
+
placeholder: 'Type here',
|
|
12
|
+
id: 'sli_VJYjJnJhg.choice_1'
|
|
13
|
+
},
|
|
14
|
+
type: 'basic',
|
|
15
|
+
header: 'Which term is used to describe the act of asking what the usual salary is for the position you are applying for?',
|
|
16
|
+
explanation: 'Type your answer.'
|
|
17
|
+
},
|
|
18
|
+
klf: 'To negotiate your salary when being hired, you have to establish a benchmark beforehand. In other words, you should assess the salary to which you aspire by enquiring about the remuneration paid in the same industry, the same region and the same position.',
|
|
19
|
+
tips: 'According to Insee, Paris salaries are 20-25% higher compared with those of the provinces in 2015.',
|
|
20
|
+
universalRef: 'sli_VJYjJnJhg',
|
|
21
|
+
id: 'sli_VJYjJnJhg',
|
|
22
|
+
parentContentTitle: {
|
|
23
|
+
title: 'Developing the review app',
|
|
24
|
+
type: 'course'
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
export const freeTextUISlide = {
|
|
28
|
+
answerUI: {
|
|
29
|
+
help: 'Type your answer.',
|
|
30
|
+
model: {
|
|
31
|
+
type: 'freeText',
|
|
32
|
+
placeholder: 'Type here',
|
|
33
|
+
value: '',
|
|
34
|
+
onChange: noop
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
questionText: 'Which term is used to describe the act of asking what the usual salary is for the position you are applying for?'
|
|
38
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import noop from 'lodash/fp/noop';
|
|
2
|
+
export const qcmDragSlide = {
|
|
3
|
+
question: {
|
|
4
|
+
content: {
|
|
5
|
+
media: {
|
|
6
|
+
src: [],
|
|
7
|
+
posters: [],
|
|
8
|
+
subtitles: []
|
|
9
|
+
},
|
|
10
|
+
choices: [
|
|
11
|
+
{
|
|
12
|
+
media: {
|
|
13
|
+
src: [],
|
|
14
|
+
posters: [],
|
|
15
|
+
subtitles: []
|
|
16
|
+
},
|
|
17
|
+
items: [],
|
|
18
|
+
_id: '624f01970a234b0333bc7ce8',
|
|
19
|
+
label: 'La démoralisation',
|
|
20
|
+
value: 'sli_4yGBq-mCg.choice_4kRL5uQCg',
|
|
21
|
+
id: '624f01970a234b0333bc7ce8'
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
media: {
|
|
25
|
+
src: [],
|
|
26
|
+
posters: [],
|
|
27
|
+
subtitles: []
|
|
28
|
+
},
|
|
29
|
+
items: [],
|
|
30
|
+
_id: '624f01970a234b0333bc7ce9',
|
|
31
|
+
label: 'La stagnation',
|
|
32
|
+
value: 'sli_4yGBq-mCg.choice_E11v9OXAx',
|
|
33
|
+
id: '624f01970a234b0333bc7ce9'
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
media: {
|
|
37
|
+
src: [],
|
|
38
|
+
posters: [],
|
|
39
|
+
subtitles: []
|
|
40
|
+
},
|
|
41
|
+
items: [],
|
|
42
|
+
_id: '624f01970a234b0333bc7cea',
|
|
43
|
+
label: 'La frustration',
|
|
44
|
+
value: 'sli_4yGBq-mCg.choice_N1lP9dmRg',
|
|
45
|
+
id: '624f01970a234b0333bc7cea'
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
media: {
|
|
49
|
+
src: [],
|
|
50
|
+
posters: [],
|
|
51
|
+
subtitles: []
|
|
52
|
+
},
|
|
53
|
+
items: [],
|
|
54
|
+
_id: '624f01970a234b0333bc7ceb',
|
|
55
|
+
label: "L'implication",
|
|
56
|
+
value: 'sli_4yGBq-mCg.choice_Eybw5dQCx',
|
|
57
|
+
id: '624f01970a234b0333bc7ceb'
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
type: 'qcmDrag',
|
|
62
|
+
header: "Remettez dans l'ordre les quatre étapes du burn out.",
|
|
63
|
+
explanation: 'Sélectionnez les réponses ci-dessous dans le bon ordre.'
|
|
64
|
+
},
|
|
65
|
+
klf: "Le burn out s'installe en quatre étapes : tout d'abord, l'implication (investissement émotionnel et/ou affectif, sacrifice de sa vie privée) ; en second, la stagnation (premières déceptions, signes de fatigue) ; ensuite, la frustration (efforts non reconnus) ; et enfin, la démoralisation (problèmes de concentration, sentiment d'inutilité, désespoir).",
|
|
66
|
+
tips: "Encadré par la loi, l'entretien professionnel a pour but d'aider le collaborateur à verbaliser ses difficultés et à construire son projet professionnel.",
|
|
67
|
+
universalRef: 'sli_4yGBq-mCg',
|
|
68
|
+
id: 'sli_4yGBq-mCg',
|
|
69
|
+
parentContentTitle: {
|
|
70
|
+
title: 'Using redux',
|
|
71
|
+
type: 'chapter'
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
export const qcmDragUISlide = {
|
|
75
|
+
questionText: "Remettez dans l'ordre les quatre étapes du burn out.",
|
|
76
|
+
answerUI: {
|
|
77
|
+
help: 'Sélectionnez les réponses ci-dessous dans le bon ordre.',
|
|
78
|
+
model: {
|
|
79
|
+
type: 'qcmDrag',
|
|
80
|
+
answers: [
|
|
81
|
+
{
|
|
82
|
+
title: 'La démoralisation',
|
|
83
|
+
selected: false,
|
|
84
|
+
order: -1,
|
|
85
|
+
onClick: noop
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
title: 'La stagnation',
|
|
89
|
+
selected: false,
|
|
90
|
+
order: -1,
|
|
91
|
+
onClick: noop
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
title: 'La frustration',
|
|
95
|
+
selected: false,
|
|
96
|
+
order: -1,
|
|
97
|
+
onClick: noop
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
title: "L'implication",
|
|
101
|
+
selected: false,
|
|
102
|
+
order: -1,
|
|
103
|
+
onClick: noop
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import noop from 'lodash/fp/noop';
|
|
2
|
+
export const qcmGraphicSlide = {
|
|
3
|
+
question: {
|
|
4
|
+
content: {
|
|
5
|
+
media: {
|
|
6
|
+
src: [],
|
|
7
|
+
posters: [],
|
|
8
|
+
subtitles: []
|
|
9
|
+
},
|
|
10
|
+
choices: [
|
|
11
|
+
{
|
|
12
|
+
media: {
|
|
13
|
+
src: [
|
|
14
|
+
{
|
|
15
|
+
_id: '624efd915948a7013083e986',
|
|
16
|
+
mimeType: 'image/jpeg',
|
|
17
|
+
url: '//static.coorpacademy.com/content/CoorpAcademy/content-partnerships/cockpit-partner-au-feminin/default/true-1512554153232.jpg',
|
|
18
|
+
id: '624efd915948a7013083e986'
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
posters: [],
|
|
22
|
+
subtitles: [],
|
|
23
|
+
type: 'img'
|
|
24
|
+
},
|
|
25
|
+
items: [],
|
|
26
|
+
_id: '624efd915948a7013083e985',
|
|
27
|
+
label: 'Vrai',
|
|
28
|
+
value: 'sli_VkSQroQnx.choice_NJesyUo7nx',
|
|
29
|
+
id: '624efd915948a7013083e985'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
media: {
|
|
33
|
+
src: [
|
|
34
|
+
{
|
|
35
|
+
_id: '624efd915948a7013083e988',
|
|
36
|
+
mimeType: 'image/jpeg',
|
|
37
|
+
url: '//static.coorpacademy.com/content/CoorpAcademy/content-partnerships/cockpit-partner-au-feminin/default/false-1512554160848.jpg',
|
|
38
|
+
id: '624efd915948a7013083e988'
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
posters: [],
|
|
42
|
+
subtitles: [],
|
|
43
|
+
type: 'img'
|
|
44
|
+
},
|
|
45
|
+
items: [],
|
|
46
|
+
_id: '624efd915948a7013083e987',
|
|
47
|
+
label: 'Faux',
|
|
48
|
+
value: 'sli_VkSQroQnx.choice_VkgayLjX3e',
|
|
49
|
+
id: '624efd915948a7013083e987'
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
type: 'qcmGraphic',
|
|
54
|
+
header: 'Pour mener une bonne négociation, il ne faut ressentir aucune émotion. Vrai ou faux ?',
|
|
55
|
+
explanation: 'Sélectionnez la bonne réponse.'
|
|
56
|
+
},
|
|
57
|
+
klf: "Il ne faut pas prendre la négociation comme une affaire personnelle, afin de rester centré sur son sujet. Mais cela ne signifie pas être dépourvu de toute émotion, car celles-ci peuvent être de vrais atouts. À condition de réussir à les exprimer sans accuser l'autre d'en être à l'origine.",
|
|
58
|
+
tips: "Pour gérer ses émotions, il faut d'abord les identifier, notamment en analysant ses ressentis physiques et en trouvant l'élément déclencheur.",
|
|
59
|
+
universalRef: 'sli_VkSQroQnx',
|
|
60
|
+
id: 'sli_VkSQroQnx',
|
|
61
|
+
parentContentTitle: {
|
|
62
|
+
title: 'Developing the review app',
|
|
63
|
+
type: 'course'
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
export const qcmGraphicUISlide = {
|
|
67
|
+
questionText: 'Pour mener une bonne négociation, il ne faut ressentir aucune émotion. Vrai ou faux ?',
|
|
68
|
+
answerUI: {
|
|
69
|
+
help: 'Sélectionnez la bonne réponse.',
|
|
70
|
+
model: {
|
|
71
|
+
type: 'qcmGraphic',
|
|
72
|
+
answers: [
|
|
73
|
+
{
|
|
74
|
+
title: 'Vrai',
|
|
75
|
+
image: '//static.coorpacademy.com/content/CoorpAcademy/content-partnerships/cockpit-partner-au-feminin/default/true-1512554153232.jpg',
|
|
76
|
+
selected: false,
|
|
77
|
+
onClick: noop
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
title: 'Faux',
|
|
81
|
+
image: '//static.coorpacademy.com/content/CoorpAcademy/content-partnerships/cockpit-partner-au-feminin/default/false-1512554160848.jpg',
|
|
82
|
+
selected: false,
|
|
83
|
+
onClick: noop
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
};
|
|
@@ -66,7 +66,11 @@ export const qcmSlide = {
|
|
|
66
66
|
tips: 'En 2021, le média en ligne Numerama a créé un NFT vendu aux enchères sur OpenSea. Sur cette plateforme, il est obligatoire de mettre un prix de réserve, autrement dit un prix minimum au-dessous duquel la vente ne sera pas automatiquement acceptée. Sur OpenSea il ne peut être inférieur à 1 ETH. Si le prix de réserve est atteint, pas de problème, les "gas fees" (les frais de gaz) sont couverts par OpenSea. Mais, si ce n’est pas le cas, c’est au vendeur de s’en acquitter. <br/>Le NFT en question est parti à 0,021 ETH, soit 40€ au cours de l\'époque, un prix inférieur au prix de réserve. Numerama a dû acquitter des frais de gaz, et payer 190 €. <br/>Avec les NFT, on ne gagne pas à tous les coups.',
|
|
67
67
|
universalRef: 'sli_N1XACJobn',
|
|
68
68
|
hasClue: true,
|
|
69
|
-
id: 'sli_N1XACJobn'
|
|
69
|
+
id: 'sli_N1XACJobn',
|
|
70
|
+
parentContentTitle: {
|
|
71
|
+
title: 'Developing the review app',
|
|
72
|
+
type: 'course'
|
|
73
|
+
}
|
|
70
74
|
};
|
|
71
75
|
export const qcmUISlide = {
|
|
72
76
|
questionText: "Après la vente d'un NFT, son créateur peut-il toucher de l'argent ?",
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import noop from 'lodash/fp/noop';
|
|
2
|
+
export const selectTemplateSlide = {
|
|
3
|
+
question: {
|
|
4
|
+
content: {
|
|
5
|
+
template: 'La vue {{sel80495}} présente la liste des utilisateurs ayant le plus grand nombre d’étoiles cumulées.',
|
|
6
|
+
choices: [
|
|
7
|
+
{
|
|
8
|
+
items: [
|
|
9
|
+
{
|
|
10
|
+
_id: '5b57464e3b594d002e8829f7',
|
|
11
|
+
value: 'sli_N13-hG3kX.choice_NJgC3aznJm',
|
|
12
|
+
text: 'Catalogue'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
_id: '5b57464e3b594d002e8829f6',
|
|
16
|
+
value: 'sli_N13-hG3kX.choice_EJZ02aMny7',
|
|
17
|
+
text: 'Leaderboard'
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
_id: '5b57464e3b594d002e8829f5',
|
|
21
|
+
value: 'sli_N13-hG3kX.choice_4keCaf21Q',
|
|
22
|
+
text: 'Activité'
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
_id: '5b57464e3b594d002e8829f4',
|
|
26
|
+
value: 'sli_N13-hG3kX.choice_NkbJAMn17',
|
|
27
|
+
text: 'Slides'
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
_id: '5b57464e3b594d002e8829f3',
|
|
31
|
+
name: 'sel80495',
|
|
32
|
+
type: 'select'
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
type: 'template',
|
|
37
|
+
header: 'Complétez la phrase ci-dessous.',
|
|
38
|
+
explanation: 'Saisissez votre réponse ou sélectionnez la bonne réponse dans le(s) menu(s) déroulant(s).'
|
|
39
|
+
},
|
|
40
|
+
klf: 'L’apprenant peut aussi évaluer sa performance grâce à un classement disponible sur la vue leaderboard. Elle compare sa position par rapport à celle des autres apprenants de la plateforme.',
|
|
41
|
+
tips: "La position d'un apprenant peut être aussi consultée depuis le header ou en-tête de la page. Elle se met à jour à chaque fois qu'un apprenant obtient des étoiles.",
|
|
42
|
+
universalRef: 'sli_N13-hG3kX',
|
|
43
|
+
id: 'sli_N13-hG3kX',
|
|
44
|
+
parentContentTitle: {
|
|
45
|
+
title: 'Developing the review app',
|
|
46
|
+
type: 'course'
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
export const selectTemplateUISlide = {
|
|
50
|
+
questionText: 'Complétez la phrase ci-dessous.',
|
|
51
|
+
answerUI: {
|
|
52
|
+
help: 'Saisissez votre réponse ou sélectionnez la bonne réponse dans le(s) menu(s) déroulant(s).',
|
|
53
|
+
model: {
|
|
54
|
+
type: 'template',
|
|
55
|
+
template: 'La vue {{sel80495}} présente la liste des utilisateurs ayant le plus grand nombre d’étoiles cumulées.',
|
|
56
|
+
answers: [
|
|
57
|
+
{
|
|
58
|
+
type: 'select',
|
|
59
|
+
name: 'sel80495',
|
|
60
|
+
onChange: noop,
|
|
61
|
+
options: [
|
|
62
|
+
{ name: 'Select an answer', value: '', validOption: false, selected: true },
|
|
63
|
+
{
|
|
64
|
+
name: 'Catalogue',
|
|
65
|
+
value: 'Catalogue',
|
|
66
|
+
validOption: true,
|
|
67
|
+
selected: false
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'Leaderboard',
|
|
71
|
+
value: 'Leaderboard',
|
|
72
|
+
validOption: true,
|
|
73
|
+
selected: false
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'Activité',
|
|
77
|
+
value: 'Activité',
|
|
78
|
+
validOption: true,
|
|
79
|
+
selected: false
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'Slides',
|
|
83
|
+
value: 'Slides',
|
|
84
|
+
validOption: true,
|
|
85
|
+
selected: false
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import noop from 'lodash/fp/noop';
|
|
2
|
+
export const sliderSlide = {
|
|
3
|
+
question: {
|
|
4
|
+
content: {
|
|
5
|
+
min: 1,
|
|
6
|
+
max: 15,
|
|
7
|
+
unitLabel: 'an(s)'
|
|
8
|
+
},
|
|
9
|
+
type: 'slider',
|
|
10
|
+
header: 'En combien d’années la communauté de communes du Thouarsais est-elle passée de zéro à un tiers d’énergies renouvelables ?',
|
|
11
|
+
explanation: 'Déplacez le curseur.'
|
|
12
|
+
},
|
|
13
|
+
klf: 'Dans le cadre d’un projet local, la communauté de communes du Thouarsais, dans le Poitou (ouest de la France), a développé un parc diversifié d’énergies renouvelables : éolien, biomasse, solaire… En sept ans seulement, entre 2007 et 2014, la part d’énergies renouvelables est passée de zéro à un tiers !',
|
|
14
|
+
tips: 'En 2014, le Thouarsais a reçu la médaille de bronze du championnat européen des énergies renouvelables.',
|
|
15
|
+
universalRef: 'sli_VkAzsCLKb',
|
|
16
|
+
id: 'sli_VkAzsCLKb',
|
|
17
|
+
parentContentTitle: {
|
|
18
|
+
title: 'Developing the review app',
|
|
19
|
+
type: 'course'
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
export const sliderUISlide = {
|
|
23
|
+
questionText: 'En combien d’années la communauté de communes du Thouarsais est-elle passée de zéro à un tiers d’énergies renouvelables ?',
|
|
24
|
+
answerUI: {
|
|
25
|
+
help: 'Déplacez le curseur.',
|
|
26
|
+
model: {
|
|
27
|
+
type: 'slider',
|
|
28
|
+
placeholder: 'Déplacez le curseur.',
|
|
29
|
+
minLabel: '1 an(s)',
|
|
30
|
+
maxLabel: '15 an(s)',
|
|
31
|
+
title: '1 an(s)',
|
|
32
|
+
value: 0,
|
|
33
|
+
onChange: noop
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
@@ -31,7 +31,11 @@ export const textTemplateSlide = {
|
|
|
31
31
|
tips: "L'origine de l'expression <i>role model</i> est attribué au sociologue Robert K. Merton.",
|
|
32
32
|
universalRef: 'sli_VJKQonm2g',
|
|
33
33
|
hasClue: true,
|
|
34
|
-
id: 'sli_VJKQonm2g'
|
|
34
|
+
id: 'sli_VJKQonm2g',
|
|
35
|
+
parentContentTitle: {
|
|
36
|
+
title: 'Using redux',
|
|
37
|
+
type: 'chapter'
|
|
38
|
+
}
|
|
35
39
|
};
|
|
36
40
|
export const textTemplateUISlide = {
|
|
37
41
|
questionText: 'Comment le protégé doit-il percevoir son mentor ?',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import test from 'ava';
|
|
2
|
+
import identity from 'lodash/fp/identity';
|
|
2
3
|
import { mapApiSlideToUi } from '../map-api-slide-to-ui';
|
|
3
4
|
import { qcmUISlide, qcmSlide } from './fixtures/qcm';
|
|
4
5
|
import { qcmDragUISlide, qcmDragSlide } from './fixtures/qcm-drag';
|
|
@@ -7,26 +8,35 @@ import { qcmGraphicUISlide, qcmGraphicSlide } from './fixtures/qcm-graphic';
|
|
|
7
8
|
import { textTemplateSlide, textTemplateUISlide } from './fixtures/text-template';
|
|
8
9
|
import { selectTemplateSlide, selectTemplateUISlide } from './fixtures/select-template';
|
|
9
10
|
import { sliderSlide, sliderUISlide } from './fixtures/slider';
|
|
10
|
-
const _mapApiSlideToUi = mapApiSlideToUi(
|
|
11
|
+
const _mapApiSlideToUi = mapApiSlideToUi(identity);
|
|
11
12
|
const macro = test.macro({
|
|
12
13
|
title(providedTitle) {
|
|
13
14
|
return `should handle ${providedTitle} conversion`.trim();
|
|
14
15
|
},
|
|
15
16
|
exec(t, arg) {
|
|
16
|
-
t.deepEqual(JSON.parse(JSON.stringify(_mapApiSlideToUi(arg.slide))), JSON.parse(JSON.stringify(arg.expectedUiSlide)));
|
|
17
|
+
t.deepEqual(JSON.parse(JSON.stringify(_mapApiSlideToUi(arg.slide, arg.answers))), JSON.parse(JSON.stringify(arg.expectedUiSlide)));
|
|
17
18
|
}
|
|
18
19
|
});
|
|
19
|
-
test('qcm', macro, { slide: qcmSlide, expectedUiSlide: qcmUISlide });
|
|
20
|
-
test('qcm drag', macro, { slide: qcmDragSlide, expectedUiSlide: qcmDragUISlide });
|
|
21
|
-
test('qcm graphic', macro, {
|
|
22
|
-
|
|
20
|
+
test('qcm', macro, { slide: qcmSlide, answers: [], expectedUiSlide: qcmUISlide });
|
|
21
|
+
test('qcm drag', macro, { slide: qcmDragSlide, answers: [], expectedUiSlide: qcmDragUISlide });
|
|
22
|
+
test('qcm graphic', macro, {
|
|
23
|
+
slide: qcmGraphicSlide,
|
|
24
|
+
answers: [],
|
|
25
|
+
expectedUiSlide: qcmGraphicUISlide
|
|
26
|
+
});
|
|
27
|
+
test('text template', macro, {
|
|
28
|
+
slide: textTemplateSlide,
|
|
29
|
+
answers: [],
|
|
30
|
+
expectedUiSlide: textTemplateUISlide
|
|
31
|
+
});
|
|
23
32
|
test('select template', macro, {
|
|
24
33
|
slide: selectTemplateSlide,
|
|
34
|
+
answers: [],
|
|
25
35
|
expectedUiSlide: selectTemplateUISlide
|
|
26
36
|
});
|
|
27
|
-
test('free text', macro, { slide: freeTextSlide, expectedUiSlide: freeTextUISlide });
|
|
28
|
-
test('slider', macro, { slide: sliderSlide, expectedUiSlide: sliderUISlide });
|
|
37
|
+
test('free text', macro, { slide: freeTextSlide, answers: [], expectedUiSlide: freeTextUISlide });
|
|
38
|
+
test('slider', macro, { slide: sliderSlide, answers: [], expectedUiSlide: sliderUISlide });
|
|
29
39
|
test('should throw an error if the question type can not be handled', t => {
|
|
30
40
|
const faultySlide = { ...qcmSlide, question: { type: 'lol' } };
|
|
31
|
-
t.throws(() => _mapApiSlideToUi(faultySlide));
|
|
41
|
+
t.throws(() => _mapApiSlideToUi(faultySlide, []));
|
|
32
42
|
});
|