@coorpacademy/components 10.19.1 → 10.19.4
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/atom/button-link-icon-only/test/button-link-icon-only.js +18 -23
- package/es/atom/button-link-icon-only/test/button-link-icon-only.js.map +1 -1
- package/es/atom/checkbox/index.js +25 -41
- package/es/atom/checkbox/index.js.map +1 -1
- package/es/atom/checkbox/test/fixtures/default.js +2 -1
- package/es/atom/checkbox/test/fixtures/default.js.map +1 -1
- package/es/atom/checkbox/test/on-change.js +25 -22
- package/es/atom/checkbox/test/on-change.js.map +1 -1
- package/es/atom/clue/index.js +2 -1
- package/es/atom/clue/index.js.map +1 -1
- package/es/atom/clue/test/see-clue.js +83 -58
- package/es/atom/clue/test/see-clue.js.map +1 -1
- package/es/atom/lottie-wrapper/index.js +1 -1
- package/es/atom/lottie-wrapper/index.js.map +1 -1
- package/es/atom/review-background/style.css +1 -1
- package/es/atom/review-header-step-item/index.js +7 -3
- package/es/atom/review-header-step-item/index.js.map +1 -1
- package/es/atom/review-header-step-item/style.css +7 -10
- package/es/atom/review-presentation/index.js +10 -2
- package/es/atom/review-presentation/index.js.map +1 -1
- package/es/molecule/dashboard/cards-list/index.js +3 -7
- package/es/molecule/dashboard/cards-list/index.js.map +1 -1
- package/es/molecule/review-correction-popin/index.js +5 -2
- package/es/molecule/review-correction-popin/index.js.map +1 -1
- package/es/molecule/review-correction-popin/test/fixtures/wrong.js +1 -0
- package/es/molecule/review-correction-popin/test/fixtures/wrong.js.map +1 -1
- package/es/molecule/review-header-steps/index.js +3 -3
- package/es/molecule/review-header-steps/index.js.map +1 -1
- package/es/organism/review-congrats/index.js +1 -1
- package/es/organism/review-congrats/index.js.map +1 -1
- package/es/organism/review-congrats/style.css +0 -1
- package/es/organism/review-header/index.js +3 -3
- package/es/organism/review-header/index.js.map +1 -1
- package/es/organism/review-header/style.css +1 -1
- package/es/organism/review-header/test/fixtures/all-questions-ok.js +3 -1
- package/es/organism/review-header/test/fixtures/all-questions-ok.js.map +1 -1
- package/es/template/slides-review/index.js +421 -0
- package/es/template/slides-review/index.js.map +1 -0
- package/es/template/slides-review/style.css +373 -0
- package/es/template/slides-review/test/fixtures/failure.js +37 -0
- package/es/template/slides-review/test/fixtures/failure.js.map +1 -0
- package/es/template/slides-review/test/fixtures/only-once-on-last-slide.js +29 -0
- package/es/template/slides-review/test/fixtures/only-once-on-last-slide.js.map +1 -0
- package/es/template/slides-review/test/fixtures/random-responses.js +34 -0
- package/es/template/slides-review/test/fixtures/random-responses.js.map +1 -0
- package/es/template/slides-review/test/fixtures/success.js +54 -0
- package/es/template/slides-review/test/fixtures/success.js.map +1 -0
- package/es/template/slides-review/test/fixtures.js +19 -0
- package/es/template/slides-review/test/fixtures.js.map +1 -0
- package/es/template/slides-review/test/slides-review.js +147 -0
- package/es/template/slides-review/test/slides-review.js.map +1 -0
- package/es/util/render-with-context.js +35 -0
- package/es/util/render-with-context.js.map +1 -0
- package/es/util/test/render-with-context.js +91 -0
- package/es/util/test/render-with-context.js.map +1 -0
- package/lib/atom/button-link-icon-only/test/button-link-icon-only.js +20 -24
- package/lib/atom/button-link-icon-only/test/button-link-icon-only.js.map +1 -1
- package/lib/atom/checkbox/index.js +29 -41
- package/lib/atom/checkbox/index.js.map +1 -1
- package/lib/atom/checkbox/test/fixtures/default.js +2 -1
- package/lib/atom/checkbox/test/fixtures/default.js.map +1 -1
- package/lib/atom/checkbox/test/on-change.js +29 -23
- package/lib/atom/checkbox/test/on-change.js.map +1 -1
- package/lib/atom/clue/index.js +2 -1
- package/lib/atom/clue/index.js.map +1 -1
- package/lib/atom/clue/test/see-clue.js +88 -59
- package/lib/atom/clue/test/see-clue.js.map +1 -1
- package/lib/atom/lottie-wrapper/index.js +1 -1
- package/lib/atom/lottie-wrapper/index.js.map +1 -1
- package/lib/atom/review-background/style.css +1 -1
- package/lib/atom/review-header-step-item/index.js +10 -4
- package/lib/atom/review-header-step-item/index.js.map +1 -1
- package/lib/atom/review-header-step-item/style.css +7 -10
- package/lib/atom/review-presentation/index.js +10 -2
- package/lib/atom/review-presentation/index.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.js +3 -7
- package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
- package/lib/molecule/review-correction-popin/index.js +5 -2
- package/lib/molecule/review-correction-popin/index.js.map +1 -1
- package/lib/molecule/review-correction-popin/test/fixtures/wrong.js +1 -0
- package/lib/molecule/review-correction-popin/test/fixtures/wrong.js.map +1 -1
- package/lib/molecule/review-header-steps/index.js +3 -3
- package/lib/molecule/review-header-steps/index.js.map +1 -1
- package/lib/organism/review-congrats/index.js +1 -1
- package/lib/organism/review-congrats/index.js.map +1 -1
- package/lib/organism/review-congrats/style.css +0 -1
- package/lib/organism/review-header/index.js.map +1 -1
- package/lib/organism/review-header/style.css +1 -1
- package/lib/organism/review-header/test/fixtures/all-questions-ok.js +3 -1
- package/lib/organism/review-header/test/fixtures/all-questions-ok.js.map +1 -1
- package/lib/template/slides-review/index.js +447 -0
- package/lib/template/slides-review/index.js.map +1 -0
- package/lib/template/slides-review/style.css +373 -0
- package/lib/template/slides-review/test/fixtures/failure.js +50 -0
- package/lib/template/slides-review/test/fixtures/failure.js.map +1 -0
- package/lib/template/slides-review/test/fixtures/only-once-on-last-slide.js +39 -0
- package/lib/template/slides-review/test/fixtures/only-once-on-last-slide.js.map +1 -0
- package/lib/template/slides-review/test/fixtures/random-responses.js +45 -0
- package/lib/template/slides-review/test/fixtures/random-responses.js.map +1 -0
- package/lib/template/slides-review/test/fixtures/success.js +67 -0
- package/lib/template/slides-review/test/fixtures/success.js.map +1 -0
- package/lib/template/slides-review/test/fixtures.js +31 -0
- package/lib/template/slides-review/test/fixtures.js.map +1 -0
- package/lib/template/slides-review/test/slides-review.js +163 -0
- package/lib/template/slides-review/test/slides-review.js.map +1 -0
- package/lib/util/render-with-context.js +49 -0
- package/lib/util/render-with-context.js.map +1 -0
- package/lib/util/test/render-with-context.js +103 -0
- package/lib/util/test/render-with-context.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value black from colors;
|
|
3
|
+
@value white from colors;
|
|
4
|
+
@value cm_blue_900 from colors;
|
|
5
|
+
@value cm_grey_400 from colors;
|
|
6
|
+
@value breakpoints: "../../variables/breakpoints.css";
|
|
7
|
+
@value mobile from breakpoints;
|
|
8
|
+
@value tablet from breakpoints;
|
|
9
|
+
|
|
10
|
+
.slidesRevisionContainer {
|
|
11
|
+
position: relative;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
overflow-y: auto;
|
|
15
|
+
height: 100vh;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.fontBase {
|
|
19
|
+
font-family: "Gilroy";
|
|
20
|
+
user-select: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.stackedSlidesContainer {
|
|
24
|
+
position: relative;
|
|
25
|
+
margin-top: 50px;
|
|
26
|
+
height: 738px;
|
|
27
|
+
max-width: 1240px;
|
|
28
|
+
width: 85%;
|
|
29
|
+
align-self: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.congrats {
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 100%;
|
|
35
|
+
min-height: 832px;
|
|
36
|
+
position: absolute;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.playerBackground {
|
|
40
|
+
position: absolute;
|
|
41
|
+
height: 100vh;
|
|
42
|
+
min-height: 832px;
|
|
43
|
+
top: 0;
|
|
44
|
+
left: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.slideBase {
|
|
48
|
+
box-shadow: 0px 4px 77px rgba(0, 0, 0, 0.05);
|
|
49
|
+
background: white;
|
|
50
|
+
height: 706px;
|
|
51
|
+
border-radius: 24px;
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
position: absolute;
|
|
54
|
+
|
|
55
|
+
align-items: center;
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
justify-content: flex-start;
|
|
59
|
+
transition: transform 0.5s ease-in;
|
|
60
|
+
pointer-events: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
.position0 {
|
|
65
|
+
z-index: 50;
|
|
66
|
+
width: 100%;
|
|
67
|
+
transform: translate(0, 0);
|
|
68
|
+
transition: transform 0.5s ease-in;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.slideBase.position0 {
|
|
72
|
+
pointer-events: auto;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.position1 {
|
|
76
|
+
z-index: 45;
|
|
77
|
+
width: 98%;
|
|
78
|
+
transform: translate(0.8%, -8px);
|
|
79
|
+
transition: transform 0.5s ease-in;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.position2 {
|
|
83
|
+
z-index: 40;
|
|
84
|
+
width: 96%;
|
|
85
|
+
transform: translate(1.6%, -16px);
|
|
86
|
+
transition: transform 0.5s ease-in;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.position3 {
|
|
90
|
+
z-index: 35;
|
|
91
|
+
width: 94%;
|
|
92
|
+
transform: translate(2.4%, -24px);
|
|
93
|
+
transition: transform 0.5 ease-in;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.position4 {
|
|
97
|
+
z-index: 30;
|
|
98
|
+
width: 92%;
|
|
99
|
+
transform: translate(3.2%, -32px);
|
|
100
|
+
transition: transform 0.5 ease-in;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@keyframes slideOutHideAndSlideIn {
|
|
104
|
+
0% {
|
|
105
|
+
z-index: 55;
|
|
106
|
+
transform: translate(0, 0);
|
|
107
|
+
}
|
|
108
|
+
50% {
|
|
109
|
+
z-index: 50;
|
|
110
|
+
transform: translate(0, 1000px);
|
|
111
|
+
opacity: 1;
|
|
112
|
+
}
|
|
113
|
+
51% {
|
|
114
|
+
z-index: 30;
|
|
115
|
+
opacity: 0;
|
|
116
|
+
}
|
|
117
|
+
100% {
|
|
118
|
+
z-index: 30;
|
|
119
|
+
transform: translate(3.2%, -32px);
|
|
120
|
+
opacity: 0;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@keyframes slideOutAndIn {
|
|
125
|
+
0% {
|
|
126
|
+
z-index: 55;
|
|
127
|
+
transform: translate(0, 0);
|
|
128
|
+
}
|
|
129
|
+
50% {
|
|
130
|
+
width: 100%;
|
|
131
|
+
z-index: 50;
|
|
132
|
+
transform: translate(0, 1000px);
|
|
133
|
+
}
|
|
134
|
+
60% {
|
|
135
|
+
width: 92%;
|
|
136
|
+
z-index: 30;
|
|
137
|
+
transform: translate(3.2%, 900px);
|
|
138
|
+
}
|
|
139
|
+
100% {
|
|
140
|
+
z-index: 30;
|
|
141
|
+
width: 92%;
|
|
142
|
+
transform: translate(3.2%, -32px);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.slideOutHideAndIn {
|
|
147
|
+
pointer-events: none;
|
|
148
|
+
animation: slideOutHideAndSlideIn 3s ease forwards;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.slideOutAndIn {
|
|
152
|
+
pointer-events: none;
|
|
153
|
+
animation: slideOutAndIn 3s ease forwards;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.hiddenSlide {
|
|
157
|
+
display: none;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
.slideContentContainer {
|
|
162
|
+
margin-top: 15px;
|
|
163
|
+
height: 563px;
|
|
164
|
+
display: flex;
|
|
165
|
+
justify-items: center;
|
|
166
|
+
align-items: center;
|
|
167
|
+
flex-direction: column;
|
|
168
|
+
overflow-y: auto;
|
|
169
|
+
position: relative;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* ie fallback */
|
|
173
|
+
_:-ms-fullscreen, :root .slideContentContainer {
|
|
174
|
+
width: 100%;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.validateButtonWrapper {
|
|
178
|
+
position: absolute;
|
|
179
|
+
bottom: 64px;
|
|
180
|
+
background-color: black;
|
|
181
|
+
border-radius: 7px;
|
|
182
|
+
min-width: 250px;
|
|
183
|
+
width: min-content;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* ie fallback */
|
|
187
|
+
_:-ms-fullscreen, :root .validateButtonWrapper {
|
|
188
|
+
width: 300px;
|
|
189
|
+
left: 40%;
|
|
190
|
+
right: 40%;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.answerContainer {
|
|
194
|
+
width: 95%;
|
|
195
|
+
display: flex;
|
|
196
|
+
justify-content: center;
|
|
197
|
+
height: 100%;
|
|
198
|
+
/*
|
|
199
|
+
To break wrappers layout (to enclose large answers in the scroll bar), works like
|
|
200
|
+
display: contents for this use case but w ie11 support
|
|
201
|
+
*/
|
|
202
|
+
display: grid;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.question {
|
|
206
|
+
composes: fontBase;
|
|
207
|
+
font-size: 20px;
|
|
208
|
+
font-weight: bold;
|
|
209
|
+
color: cm_blue_900;
|
|
210
|
+
text-align: center;
|
|
211
|
+
margin: 24px 0 4px;
|
|
212
|
+
max-width: 70%;
|
|
213
|
+
width: 100%;
|
|
214
|
+
padding: 0 9px;
|
|
215
|
+
box-sizing: border-box;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.questionOrigin {
|
|
219
|
+
composes: fontBase;
|
|
220
|
+
font-size: 15px;
|
|
221
|
+
color: cm_blue_900;
|
|
222
|
+
margin-top: 49px;
|
|
223
|
+
text-align: center;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.questionOrigin:empty:after {
|
|
227
|
+
content: "\a0";
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.help {
|
|
231
|
+
composes: fontBase;
|
|
232
|
+
font-size: 15px;
|
|
233
|
+
color: cm_grey_400;
|
|
234
|
+
flex-grow: 0.1;
|
|
235
|
+
margin: 4px 0 10px;
|
|
236
|
+
text-align: center;
|
|
237
|
+
max-width: 70%;
|
|
238
|
+
width: 100%;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/* to keep the content space even if the help label is empty */
|
|
242
|
+
.help:empty:after {
|
|
243
|
+
content: "\a0";
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@keyframes popInAnimation {
|
|
247
|
+
from {
|
|
248
|
+
transform: translate3d(0, 200px, 0);
|
|
249
|
+
}
|
|
250
|
+
to {
|
|
251
|
+
transform: translate3d(0, -40px, 0);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.correctionPopinWrapper {
|
|
256
|
+
position: absolute;
|
|
257
|
+
bottom: 0px;
|
|
258
|
+
border-radius: 7px;
|
|
259
|
+
margin: 0 15px;
|
|
260
|
+
width: 95%;
|
|
261
|
+
animation: popInAnimation 0.5s ease-out forwards;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* ie fallback */
|
|
265
|
+
_:-ms-fullscreen, :root .correctionPopinWrapper {
|
|
266
|
+
left: 15px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
@keyframes popOutAnimation {
|
|
270
|
+
from {
|
|
271
|
+
transform: translate3d(0, -40px, 0);
|
|
272
|
+
}
|
|
273
|
+
to {
|
|
274
|
+
transform: translate3d(0, 200px, 0);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.hiddenCorrectionPopinWrapper {
|
|
279
|
+
composes: correctionPopinWrapper;
|
|
280
|
+
animation: popOutAnimation 0.5s ease-out forwards;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.validateButton {
|
|
284
|
+
color: white;
|
|
285
|
+
transition: opacity 0.25s ease-in;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.validateButton:hover {
|
|
289
|
+
opacity: 0.8;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
@keyframes slideOut {
|
|
293
|
+
0% {}
|
|
294
|
+
90% {
|
|
295
|
+
transform: translate(0, 1000px);
|
|
296
|
+
}
|
|
297
|
+
100% {
|
|
298
|
+
transform: scale(0);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.endReview {
|
|
303
|
+
pointer-events: none;
|
|
304
|
+
animation: slideOut 2.5s ease forwards;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
@media tablet {
|
|
308
|
+
.stackedSlidesContainer {
|
|
309
|
+
height: 638px;
|
|
310
|
+
max-width: 960px;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.slideBase {
|
|
314
|
+
height: 606px;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.slideContentContainer {
|
|
318
|
+
height: 473px;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
@keyframes popInAnimation {
|
|
323
|
+
from {
|
|
324
|
+
transform: translate3d(0, 400px, 0);
|
|
325
|
+
}
|
|
326
|
+
to {
|
|
327
|
+
transform: translate3d(0, -40px, 0);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
@keyframes popOutAnimation {
|
|
332
|
+
from {
|
|
333
|
+
transform: translate3d(0, -40px, 0);
|
|
334
|
+
}
|
|
335
|
+
to {
|
|
336
|
+
transform: translate3d(0, 400px, 0);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
@media mobile {
|
|
342
|
+
.stackedSlidesContainer {
|
|
343
|
+
height: 670px;
|
|
344
|
+
max-width: 335px;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.slideBase {
|
|
348
|
+
height: 654px;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.slideContentContainer {
|
|
352
|
+
height: 511px;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
@keyframes popInAnimation {
|
|
357
|
+
from {
|
|
358
|
+
transform: translate3d(0, 500px, 0);
|
|
359
|
+
}
|
|
360
|
+
to {
|
|
361
|
+
transform: translate3d(0, -40px, 0);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
@keyframes popOutAnimation {
|
|
366
|
+
from {
|
|
367
|
+
transform: translate3d(0, -40px, 0);
|
|
368
|
+
}
|
|
369
|
+
to {
|
|
370
|
+
transform: translate3d(0, 500px, 0);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _noAnsweredQuestion = _interopRequireDefault(require("../../../../organism/review-header/test/fixtures/no-answered-question"));
|
|
7
|
+
|
|
8
|
+
var _default2 = _interopRequireDefault(require("../../../../organism/review-congrats/test/fixtures/default"));
|
|
9
|
+
|
|
10
|
+
var _qcmDrag = _interopRequireDefault(require("../../../../molecule/answer/test/fixtures/qcm-drag"));
|
|
11
|
+
|
|
12
|
+
var _qcmGraphic = _interopRequireDefault(require("../../../../molecule/answer/test/fixtures/qcm-graphic"));
|
|
13
|
+
|
|
14
|
+
var _success = require("./success");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
18
|
+
const qcmDrag = _qcmDrag.default.props;
|
|
19
|
+
const qcmGraphic = _qcmGraphic.default.props;
|
|
20
|
+
|
|
21
|
+
const onValidateClick = () => {
|
|
22
|
+
console.log('onValidateClick');
|
|
23
|
+
return Promise.resolve({
|
|
24
|
+
validationResult: 'failure',
|
|
25
|
+
nextSlide: {
|
|
26
|
+
question: 'Other question?',
|
|
27
|
+
answer: qcmGraphic
|
|
28
|
+
},
|
|
29
|
+
endReview: false
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
var _default = {
|
|
34
|
+
props: {
|
|
35
|
+
headerProps: _noAnsweredQuestion.default.props,
|
|
36
|
+
reviewBackgroundAriaLabel: 'review BG Aria',
|
|
37
|
+
validate: {
|
|
38
|
+
label: 'Validate',
|
|
39
|
+
onClick: onValidateClick
|
|
40
|
+
},
|
|
41
|
+
firstSlide: {
|
|
42
|
+
question: 'Hey there! ......dramatic suspense..... ready to answer?',
|
|
43
|
+
answer: qcmDrag
|
|
44
|
+
},
|
|
45
|
+
correctionPopinProps: _success.correctionPopinProps,
|
|
46
|
+
congratsProps: _default2.default.props
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
exports.default = _default;
|
|
50
|
+
//# sourceMappingURL=failure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/template/slides-review/test/fixtures/failure.js"],"names":["qcmDrag","AnswerQCMDrag","props","qcmGraphic","AnswerQCMGraphic","onValidateClick","console","log","Promise","resolve","validationResult","nextSlide","question","answer","endReview","headerProps","reviewBackgroundAriaLabel","validate","label","onClick","firstSlide","correctionPopinProps","congratsProps"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,OAAO,GAAGC,iBAAcC,KAA9B;AACA,MAAMC,UAAU,GAAGC,oBAAiBF,KAApC;;AAEA,MAAMG,eAAe,GAAG,MAAM;AAC5BC,EAAAA,OAAO,CAACC,GAAR,CAAY,iBAAZ;AACA,SAAOC,OAAO,CAACC,OAAR,CAAgB;AACrBC,IAAAA,gBAAgB,EAAE,SADG;AAErBC,IAAAA,SAAS,EAAE;AAACC,MAAAA,QAAQ,EAAE,iBAAX;AAA8BC,MAAAA,MAAM,EAAEV;AAAtC,KAFU;AAGrBW,IAAAA,SAAS,EAAE;AAHU,GAAhB,CAAP;AAKD,CAPD;;eASe;AACbZ,EAAAA,KAAK,EAAE;AACLa,IAAAA,WAAW,EAAEA,4BAAYb,KADpB;AAELc,IAAAA,yBAAyB,EAAE,gBAFtB;AAGLC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,KAAK,EAAE,UADC;AAERC,MAAAA,OAAO,EAAEd;AAFD,KAHL;AAOLe,IAAAA,UAAU,EAAE;AACVR,MAAAA,QAAQ,EAAE,0DADA;AAEVC,MAAAA,MAAM,EAAEb;AAFE,KAPP;AAWLqB,IAAAA,oBAAoB,EAApBA,6BAXK;AAYLC,IAAAA,aAAa,EAAEA,kBAAcpB;AAZxB;AADM,C","sourcesContent":["import headerProps from '../../../../organism/review-header/test/fixtures/no-answered-question';\nimport congratsProps from '../../../../organism/review-congrats/test/fixtures/default';\nimport AnswerQCMDrag from '../../../../molecule/answer/test/fixtures/qcm-drag';\nimport AnswerQCMGraphic from '../../../../molecule/answer/test/fixtures/qcm-graphic';\nimport {correctionPopinProps} from './success';\n\nconst qcmDrag = AnswerQCMDrag.props;\nconst qcmGraphic = AnswerQCMGraphic.props;\n\nconst onValidateClick = () => {\n console.log('onValidateClick');\n return Promise.resolve({\n validationResult: 'failure',\n nextSlide: {question: 'Other question?', answer: qcmGraphic},\n endReview: false\n });\n};\n\nexport default {\n props: {\n headerProps: headerProps.props,\n reviewBackgroundAriaLabel: 'review BG Aria',\n validate: {\n label: 'Validate',\n onClick: onValidateClick\n },\n firstSlide: {\n question: 'Hey there! ......dramatic suspense..... ready to answer?',\n answer: qcmDrag\n },\n correctionPopinProps,\n congratsProps: congratsProps.props\n }\n};\n"],"file":"failure.js"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _qcmGraphic = _interopRequireDefault(require("../../../../molecule/answer/test/fixtures/qcm-graphic"));
|
|
7
|
+
|
|
8
|
+
var _success = _interopRequireDefault(require("./success"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
|
+
|
|
14
|
+
const qcmGraphic = _qcmGraphic.default.props;
|
|
15
|
+
let numberOfTries = 0;
|
|
16
|
+
|
|
17
|
+
const onValidateClick = () => {
|
|
18
|
+
numberOfTries = numberOfTries + 1;
|
|
19
|
+
console.log('onValidateClick');
|
|
20
|
+
return Promise.resolve({
|
|
21
|
+
validationResult: numberOfTries === 5 ? 'failure' : 'success',
|
|
22
|
+
nextSlide: {
|
|
23
|
+
question: 'other question?',
|
|
24
|
+
answer: qcmGraphic
|
|
25
|
+
},
|
|
26
|
+
endReview: false
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
var _default = {
|
|
31
|
+
props: _extends(_extends({}, _success.default.props), {}, {
|
|
32
|
+
validate: {
|
|
33
|
+
label: 'Validate',
|
|
34
|
+
onClick: onValidateClick
|
|
35
|
+
}
|
|
36
|
+
})
|
|
37
|
+
};
|
|
38
|
+
exports.default = _default;
|
|
39
|
+
//# sourceMappingURL=only-once-on-last-slide.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/template/slides-review/test/fixtures/only-once-on-last-slide.js"],"names":["qcmGraphic","AnswerQCMGraphic","props","numberOfTries","onValidateClick","console","log","Promise","resolve","validationResult","nextSlide","question","answer","endReview","successFixture","validate","label","onClick"],"mappings":";;;;;AAAA;;AACA;;;;;;AAEA,MAAMA,UAAU,GAAGC,oBAAiBC,KAApC;AAEA,IAAIC,aAAa,GAAG,CAApB;;AACA,MAAMC,eAAe,GAAG,MAAM;AAC5BD,EAAAA,aAAa,GAAGA,aAAa,GAAG,CAAhC;AACAE,EAAAA,OAAO,CAACC,GAAR,CAAY,iBAAZ;AACA,SAAOC,OAAO,CAACC,OAAR,CAAgB;AACrBC,IAAAA,gBAAgB,EAAEN,aAAa,KAAK,CAAlB,GAAsB,SAAtB,GAAkC,SAD/B;AAErBO,IAAAA,SAAS,EAAE;AAACC,MAAAA,QAAQ,EAAE,iBAAX;AAA8BC,MAAAA,MAAM,EAAEZ;AAAtC,KAFU;AAGrBa,IAAAA,SAAS,EAAE;AAHU,GAAhB,CAAP;AAKD,CARD;;eAUe;AACbX,EAAAA,KAAK,wBACAY,iBAAeZ,KADf;AAEHa,IAAAA,QAAQ,EAAE;AACRC,MAAAA,KAAK,EAAE,UADC;AAERC,MAAAA,OAAO,EAAEb;AAFD;AAFP;AADQ,C","sourcesContent":["import AnswerQCMGraphic from '../../../../molecule/answer/test/fixtures/qcm-graphic';\nimport successFixture from './success';\n\nconst qcmGraphic = AnswerQCMGraphic.props;\n\nlet numberOfTries = 0;\nconst onValidateClick = () => {\n numberOfTries = numberOfTries + 1;\n console.log('onValidateClick');\n return Promise.resolve({\n validationResult: numberOfTries === 5 ? 'failure' : 'success',\n nextSlide: {question: 'other question?', answer: qcmGraphic},\n endReview: false\n });\n};\n\nexport default {\n props: {\n ...successFixture.props,\n validate: {\n label: 'Validate',\n onClick: onValidateClick\n }\n }\n};\n"],"file":"only-once-on-last-slide.js"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _random = _interopRequireDefault(require("lodash/fp/random"));
|
|
7
|
+
|
|
8
|
+
var _qcmDrag = _interopRequireDefault(require("../../../../molecule/answer/test/fixtures/qcm-drag"));
|
|
9
|
+
|
|
10
|
+
var _qcmGraphic = _interopRequireDefault(require("../../../../molecule/answer/test/fixtures/qcm-graphic"));
|
|
11
|
+
|
|
12
|
+
var _success = _interopRequireDefault(require("./success"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
+
|
|
18
|
+
const getRandomResult = () => (0, _random.default)(0, 100) >= 45 ? 'success' : 'failure';
|
|
19
|
+
|
|
20
|
+
const qcmDrag = _qcmDrag.default.props;
|
|
21
|
+
const qcmGraphic = _qcmGraphic.default.props;
|
|
22
|
+
|
|
23
|
+
const onValidateClick = () => {
|
|
24
|
+
console.log('onValidateClick');
|
|
25
|
+
const result = getRandomResult();
|
|
26
|
+
return Promise.resolve({
|
|
27
|
+
validationResult: result,
|
|
28
|
+
nextSlide: {
|
|
29
|
+
question: 'Other question?',
|
|
30
|
+
answer: result === 'success' ? qcmDrag : qcmGraphic
|
|
31
|
+
},
|
|
32
|
+
endReview: false
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
var _default = {
|
|
37
|
+
props: _extends(_extends({}, _success.default.props), {}, {
|
|
38
|
+
validate: {
|
|
39
|
+
label: 'Validate',
|
|
40
|
+
onClick: onValidateClick
|
|
41
|
+
}
|
|
42
|
+
})
|
|
43
|
+
};
|
|
44
|
+
exports.default = _default;
|
|
45
|
+
//# sourceMappingURL=random-responses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/template/slides-review/test/fixtures/random-responses.js"],"names":["getRandomResult","qcmDrag","AnswerQCMDrag","props","qcmGraphic","AnswerQCMGraphic","onValidateClick","console","log","result","Promise","resolve","validationResult","nextSlide","question","answer","endReview","successFixture","validate","label","onClick"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,eAAe,GAAG,MAAO,qBAAO,CAAP,EAAU,GAAV,KAAkB,EAAlB,GAAuB,SAAvB,GAAmC,SAAlE;;AAEA,MAAMC,OAAO,GAAGC,iBAAcC,KAA9B;AACA,MAAMC,UAAU,GAAGC,oBAAiBF,KAApC;;AAEA,MAAMG,eAAe,GAAG,MAAM;AAC5BC,EAAAA,OAAO,CAACC,GAAR,CAAY,iBAAZ;AACA,QAAMC,MAAM,GAAGT,eAAe,EAA9B;AACA,SAAOU,OAAO,CAACC,OAAR,CAAgB;AACrBC,IAAAA,gBAAgB,EAAEH,MADG;AAErBI,IAAAA,SAAS,EAAE;AAACC,MAAAA,QAAQ,EAAE,iBAAX;AAA8BC,MAAAA,MAAM,EAAEN,MAAM,KAAK,SAAX,GAAuBR,OAAvB,GAAiCG;AAAvE,KAFU;AAGrBY,IAAAA,SAAS,EAAE;AAHU,GAAhB,CAAP;AAKD,CARD;;eAUe;AACbb,EAAAA,KAAK,wBACAc,iBAAed,KADf;AAEHe,IAAAA,QAAQ,EAAE;AACRC,MAAAA,KAAK,EAAE,UADC;AAERC,MAAAA,OAAO,EAAEd;AAFD;AAFP;AADQ,C","sourcesContent":["import random from 'lodash/fp/random';\nimport AnswerQCMDrag from '../../../../molecule/answer/test/fixtures/qcm-drag';\nimport AnswerQCMGraphic from '../../../../molecule/answer/test/fixtures/qcm-graphic';\nimport successFixture from './success';\n\nconst getRandomResult = () => (random(0, 100) >= 45 ? 'success' : 'failure');\n\nconst qcmDrag = AnswerQCMDrag.props;\nconst qcmGraphic = AnswerQCMGraphic.props;\n\nconst onValidateClick = () => {\n console.log('onValidateClick');\n const result = getRandomResult();\n return Promise.resolve({\n validationResult: result,\n nextSlide: {question: 'Other question?', answer: result === 'success' ? qcmDrag : qcmGraphic},\n endReview: false\n });\n};\n\nexport default {\n props: {\n ...successFixture.props,\n validate: {\n label: 'Validate',\n onClick: onValidateClick\n }\n }\n};\n"],"file":"random-responses.js"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = exports.correctionPopinProps = void 0;
|
|
5
|
+
|
|
6
|
+
var _noAnsweredQuestion = _interopRequireDefault(require("../../../../organism/review-header/test/fixtures/no-answered-question"));
|
|
7
|
+
|
|
8
|
+
var _default2 = _interopRequireDefault(require("../../../../organism/review-congrats/test/fixtures/default"));
|
|
9
|
+
|
|
10
|
+
var _qcmDrag = _interopRequireDefault(require("../../../../molecule/answer/test/fixtures/qcm-drag"));
|
|
11
|
+
|
|
12
|
+
var _qcmGraphic = _interopRequireDefault(require("../../../../molecule/answer/test/fixtures/qcm-graphic"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
const qcmDrag = _qcmDrag.default.props;
|
|
17
|
+
const qcmGraphic = _qcmGraphic.default.props;
|
|
18
|
+
|
|
19
|
+
const onValidateClick = () => {
|
|
20
|
+
console.log('onValidateClick');
|
|
21
|
+
return Promise.resolve({
|
|
22
|
+
validationResult: 'success',
|
|
23
|
+
nextSlide: {
|
|
24
|
+
question: 'other question?',
|
|
25
|
+
answer: qcmGraphic
|
|
26
|
+
},
|
|
27
|
+
endReview: false
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const correctionPopinProps = {
|
|
32
|
+
klf: {
|
|
33
|
+
label: 'Key learning factor',
|
|
34
|
+
tooltip: 'Some tooltip info.',
|
|
35
|
+
onClick: () => {
|
|
36
|
+
console.log('klf onClick');
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
information: {
|
|
40
|
+
label: 'Key learning factor',
|
|
41
|
+
message: 'info msg'
|
|
42
|
+
},
|
|
43
|
+
next: {
|
|
44
|
+
label: 'Next'
|
|
45
|
+
},
|
|
46
|
+
successLabel: 'CORRECT ANSWER',
|
|
47
|
+
failureLabel: 'WRONG ANSWER'
|
|
48
|
+
};
|
|
49
|
+
exports.correctionPopinProps = correctionPopinProps;
|
|
50
|
+
var _default = {
|
|
51
|
+
props: {
|
|
52
|
+
headerProps: _noAnsweredQuestion.default.props,
|
|
53
|
+
reviewBackgroundAriaLabel: 'review BG Aria',
|
|
54
|
+
validate: {
|
|
55
|
+
label: 'Validate',
|
|
56
|
+
onClick: onValidateClick
|
|
57
|
+
},
|
|
58
|
+
firstSlide: {
|
|
59
|
+
question: 'Hey there, .....suspense.... ready to select some answers?',
|
|
60
|
+
answer: qcmDrag
|
|
61
|
+
},
|
|
62
|
+
correctionPopinProps,
|
|
63
|
+
congratsProps: _default2.default.props
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
exports.default = _default;
|
|
67
|
+
//# sourceMappingURL=success.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/template/slides-review/test/fixtures/success.js"],"names":["qcmDrag","AnswerQCMDrag","props","qcmGraphic","AnswerQCMGraphic","onValidateClick","console","log","Promise","resolve","validationResult","nextSlide","question","answer","endReview","correctionPopinProps","klf","label","tooltip","onClick","information","message","next","successLabel","failureLabel","headerProps","reviewBackgroundAriaLabel","validate","firstSlide","congratsProps"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,OAAO,GAAGC,iBAAcC,KAA9B;AACA,MAAMC,UAAU,GAAGC,oBAAiBF,KAApC;;AAEA,MAAMG,eAAe,GAAG,MAAM;AAC5BC,EAAAA,OAAO,CAACC,GAAR,CAAY,iBAAZ;AACA,SAAOC,OAAO,CAACC,OAAR,CAAgB;AACrBC,IAAAA,gBAAgB,EAAE,SADG;AAErBC,IAAAA,SAAS,EAAE;AAACC,MAAAA,QAAQ,EAAE,iBAAX;AAA8BC,MAAAA,MAAM,EAAEV;AAAtC,KAFU;AAGrBW,IAAAA,SAAS,EAAE;AAHU,GAAhB,CAAP;AAKD,CAPD;;AASO,MAAMC,oBAAoB,GAAG;AAClCC,EAAAA,GAAG,EAAE;AACHC,IAAAA,KAAK,EAAE,qBADJ;AAEHC,IAAAA,OAAO,EAAE,oBAFN;AAGHC,IAAAA,OAAO,EAAE,MAAM;AACbb,MAAAA,OAAO,CAACC,GAAR,CAAY,aAAZ;AACD;AALE,GAD6B;AAQlCa,EAAAA,WAAW,EAAE;AACXH,IAAAA,KAAK,EAAE,qBADI;AAEXI,IAAAA,OAAO,EAAE;AAFE,GARqB;AAYlCC,EAAAA,IAAI,EAAE;AACJL,IAAAA,KAAK,EAAE;AADH,GAZ4B;AAelCM,EAAAA,YAAY,EAAE,gBAfoB;AAgBlCC,EAAAA,YAAY,EAAE;AAhBoB,CAA7B;;eAmBQ;AACbtB,EAAAA,KAAK,EAAE;AACLuB,IAAAA,WAAW,EAAEA,4BAAYvB,KADpB;AAELwB,IAAAA,yBAAyB,EAAE,gBAFtB;AAGLC,IAAAA,QAAQ,EAAE;AACRV,MAAAA,KAAK,EAAE,UADC;AAERE,MAAAA,OAAO,EAAEd;AAFD,KAHL;AAOLuB,IAAAA,UAAU,EAAE;AACVhB,MAAAA,QAAQ,EAAE,4DADA;AAEVC,MAAAA,MAAM,EAAEb;AAFE,KAPP;AAWLe,IAAAA,oBAXK;AAYLc,IAAAA,aAAa,EAAEA,kBAAc3B;AAZxB;AADM,C","sourcesContent":["import headerProps from '../../../../organism/review-header/test/fixtures/no-answered-question';\nimport congratsProps from '../../../../organism/review-congrats/test/fixtures/default';\nimport AnswerQCMDrag from '../../../../molecule/answer/test/fixtures/qcm-drag';\nimport AnswerQCMGraphic from '../../../../molecule/answer/test/fixtures/qcm-graphic';\n\nconst qcmDrag = AnswerQCMDrag.props;\nconst qcmGraphic = AnswerQCMGraphic.props;\n\nconst onValidateClick = () => {\n console.log('onValidateClick');\n return Promise.resolve({\n validationResult: 'success',\n nextSlide: {question: 'other question?', answer: qcmGraphic},\n endReview: false\n });\n};\n\nexport const correctionPopinProps = {\n klf: {\n label: 'Key learning factor',\n tooltip: 'Some tooltip info.',\n onClick: () => {\n console.log('klf onClick');\n }\n },\n information: {\n label: 'Key learning factor',\n message: 'info msg'\n },\n next: {\n label: 'Next'\n },\n successLabel: 'CORRECT ANSWER',\n failureLabel: 'WRONG ANSWER'\n};\n\nexport default {\n props: {\n headerProps: headerProps.props,\n reviewBackgroundAriaLabel: 'review BG Aria',\n validate: {\n label: 'Validate',\n onClick: onValidateClick\n },\n firstSlide: {\n question: 'Hey there, .....suspense.... ready to select some answers?',\n answer: qcmDrag\n },\n correctionPopinProps,\n congratsProps: congratsProps.props\n }\n};\n"],"file":"success.js"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _ava = _interopRequireDefault(require("ava"));
|
|
4
|
+
|
|
5
|
+
var _forEach = _interopRequireDefault(require("lodash/forEach"));
|
|
6
|
+
|
|
7
|
+
var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
|
|
8
|
+
|
|
9
|
+
var _ = _interopRequireDefault(require(".."));
|
|
10
|
+
|
|
11
|
+
var _failure = _interopRequireDefault(require("./fixtures/failure"));
|
|
12
|
+
|
|
13
|
+
var _onlyOnceOnLastSlide = _interopRequireDefault(require("./fixtures/only-once-on-last-slide"));
|
|
14
|
+
|
|
15
|
+
var _randomResponses = _interopRequireDefault(require("./fixtures/random-responses"));
|
|
16
|
+
|
|
17
|
+
var _success = _interopRequireDefault(require("./fixtures/success"));
|
|
18
|
+
|
|
19
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
+
|
|
21
|
+
(0, _ava.default)('Template › TemplateSlidesReview > should have valid propTypes', t => {
|
|
22
|
+
t.pass();
|
|
23
|
+
(0, _forEach.default)(_.default.propTypes, (value, key) => {
|
|
24
|
+
t.not(value, undefined, `PropType for "Template.TemplateSlidesReview.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
(0, _ava.default)('Template › TemplateSlidesReview › Failure › should be rendered', _renderComponent.default, _.default, _failure.default);
|
|
28
|
+
(0, _ava.default)('Template › TemplateSlidesReview › OnlyOnceOnLastSlide › should be rendered', _renderComponent.default, _.default, _onlyOnceOnLastSlide.default);
|
|
29
|
+
(0, _ava.default)('Template › TemplateSlidesReview › RandomResponses › should be rendered', _renderComponent.default, _.default, _randomResponses.default);
|
|
30
|
+
(0, _ava.default)('Template › TemplateSlidesReview › Success › should be rendered', _renderComponent.default, _.default, _success.default);
|
|
31
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/template/slides-review/test/fixtures.js"],"names":["t","pass","TemplateSlidesReview","propTypes","value","key","not","undefined","renderComponentMacro","fixtureFailure","fixtureOnlyOnceOnLastSlide","fixtureRandomResponses","fixtureSuccess"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,+DAAL,EAAsEA,CAAC,IAAI;AACzEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAqBC,SAA7B,EAAwC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACtDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yDAAwDF,GAAI,mEAArF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,gEAAL,EAAuEG,wBAAvE,EAA6FN,SAA7F,EAAmHO,gBAAnH;AACA,kBAAK,4EAAL,EAAmFD,wBAAnF,EAAyGN,SAAzG,EAA+HQ,4BAA/H;AACA,kBAAK,wEAAL,EAA+EF,wBAA/E,EAAqGN,SAArG,EAA2HS,wBAA3H;AACA,kBAAK,gEAAL,EAAuEH,wBAAvE,EAA6FN,SAA7F,EAAmHU,gBAAnH","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport TemplateSlidesReview from '..';\nimport fixtureFailure from './fixtures/failure';\nimport fixtureOnlyOnceOnLastSlide from './fixtures/only-once-on-last-slide';\nimport fixtureRandomResponses from './fixtures/random-responses';\nimport fixtureSuccess from './fixtures/success';\n\ntest('Template › TemplateSlidesReview > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateSlidesReview.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Template.TemplateSlidesReview.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Template › TemplateSlidesReview › Failure › should be rendered', renderComponentMacro, TemplateSlidesReview, fixtureFailure);\ntest('Template › TemplateSlidesReview › OnlyOnceOnLastSlide › should be rendered', renderComponentMacro, TemplateSlidesReview, fixtureOnlyOnceOnLastSlide);\ntest('Template › TemplateSlidesReview › RandomResponses › should be rendered', renderComponentMacro, TemplateSlidesReview, fixtureRandomResponses);\ntest('Template › TemplateSlidesReview › Success › should be rendered', renderComponentMacro, TemplateSlidesReview, fixtureSuccess);\n"],"file":"fixtures.js"}
|