More tests and fixes

This commit is contained in:
Jonathan Putney
2019-11-14 16:07:42 -05:00
parent caa5977a4b
commit 929176fb3e
14 changed files with 385 additions and 238 deletions

View File

@@ -609,7 +609,6 @@ export default class BaseAPI {
this.throwSCORMError(203);
}
}
return;
} else {
return refObject;
}
@@ -776,6 +775,14 @@ export default class BaseAPI {
return JSON.parse(JSON.stringify(cmi));
}
/**
* Gets the current total time as total_time + session_time
* APIs that inherit BaseAPI should override this function
*/
getCurrentTotalTime() {
this.cmi.getCurrentTotalTime();
}
/**
* Throws a SCORM error
*