SCORM 2004 cmi.interactions.n.learner_response was never being set

This commit is contained in:
Jonathan Putney
2020-08-14 15:22:01 -04:00
parent 2f72c17d3a
commit e9fee3c258
5 changed files with 16 additions and 3 deletions

View File

@@ -341,6 +341,15 @@ describe('SCORM 2004 API Tests', () => {
expect(
String(scorm2004API.lmsGetLastError())
).to.equal(String(0));
expect(
scorm2004API.getCMIValue('cmi.interactions.0.id')
).to.equal('Scene1_Slide3_MultiChoice_0_0');
expect(
scorm2004API.getCMIValue('cmi.interactions.0.type')
).to.equal('choice');
expect(
scorm2004API.getCMIValue('cmi.interactions.0.learner_response')
).to.equal('VP_on-call_or_President');
});
});