Adding new selfReportSessionTime setting

This commit is contained in:
Jonathan Putney
2020-06-26 14:50:33 -04:00
parent aa03f6affb
commit ca94ee9fb5
12 changed files with 643 additions and 500 deletions

View File

@@ -317,9 +317,6 @@ describe('SCORM 1.2 API Tests', () => {
cmiExport.cmi.core.total_time,
).to.equal('36:34:55');
});
});
describe('renderCommitCMI()', () => {
it('if the user passes, should calculate total time when terminateCommit passed',
() => {
const scorm12API = api();

View File

@@ -7,8 +7,8 @@ import {scorm2004_values} from './field_values';
const scorm2004_error_codes = ErrorCodes.scorm2004;
const api = (startingData) => {
const API = new Scorm2004API();
const api = (settings = {}, startingData = {}) => {
const API = new Scorm2004API(settings);
API.apiLogLevel = 1;
if (startingData) {
API.startingData = startingData;