You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'<p>Ms. Byrd shows her third grade students how to make a bar graph. She uses the number of letters in some of her students' first names. The students' names she uses for the bar graph are shown below.</p><p><img alt="image 2eade8e8a2fa445dae432c417e8a2731" id="2eade8e8a2fa445dae432c417e8a2731" src="https://storage.googleapis.com/pie-prod-221718-assets/image/cf2c334e-340c-4523-9a47-cb835fddfefe"></p><p>Ms. Byrd starts the bar graph by writing some of the labels. Finish the bar graph below by dragging the bars to show the correct number of first name letters of all the students and adding labels as needed.</p><p></p><p></p><p></p>',
1268
+
range: {
1269
+
label: 'Number of Students',
1270
+
max: 6,
1271
+
labelStep: 0.25,
1272
+
step: 0.25,
1273
+
min: 0,
1274
+
},
1275
+
rationale: null,
1276
+
title: 'Number of Letters in First Name',
1277
+
disabled: false,
1278
+
teacherInstructions: null,
1279
+
};
1280
+
1281
+
mockFetchSession.mockResolvedValue({
1282
+
answer: [
1283
+
{
1284
+
interactive: false,
1285
+
value: 3,
1286
+
label: 'Three',
1287
+
},
1288
+
{
1289
+
value: 2,
1290
+
label: 'Four',
1291
+
interactive: false,
1292
+
},
1293
+
{
1294
+
value: 4,
1295
+
label: 'Five',
1296
+
interactive: false,
1297
+
},
1298
+
{
1299
+
interactive: false,
1300
+
value: 0.25,
1301
+
label: 'six',
1302
+
},
1303
+
{
1304
+
value: 1,
1305
+
label: 'seven',
1306
+
interactive: false,
1307
+
},
1308
+
{
1309
+
interactive: false,
1310
+
value: 1,
1311
+
label: 'eight',
1312
+
},
1313
+
],
1314
+
});
1315
+
1316
+
// Test to check if getScore correctly processes the session data from API
1317
+
describe('getScore with API session data',()=>{
1318
+
it('correctly processes session data from API in evaluate mode',async()=>{
1319
+
constsession=awaitmockFetchSession();
1320
+
constenv={mode: 'evaluate',partialScoring: true};
1321
+
constmod=awaitmodel(question,session,env);
1322
+
1323
+
// Simulate the API call and process the data
1324
+
constscoreResult=getScore(mod,session,env);
1325
+
1326
+
// Check if the answers from getScore match the correctedAnswer in mod
0 commit comments