Bug fixes and sorting issue with loadFromFlattenedJson

Also added several new test cases, most significantly some cases that test the commit functionality
This commit is contained in:
Jonathan Putney
2020-08-17 14:46:33 -04:00
parent 8c781ac378
commit 7f1d9953e4
10 changed files with 429 additions and 48 deletions

View File

@@ -62,7 +62,7 @@ const scorm2004 = {
CMISStatus: '^(passed|failed|unknown)$',
CMIExit: '^(time-out|suspend|logout|normal)$',
CMIType: '^(true-false|choice|fill-in|long-fill-in|matching|performance|sequencing|likert|numeric|other)$',
CMIResult: '^(correct|wrong|unanticipated|neutral|-?([0-9]{1,4})(\\.[0-9]{1,18})?)$',
CMIResult: '^(correct|incorrect|unanticipated|neutral|-?([0-9]{1,4})(\\.[0-9]{1,18})?)$',
NAVEvent: '^(previous|continue|exit|exitAll|abandon|abandonAll|suspendAll|\{target=\\S{0,200}[a-zA-Z0-9]\}choice|jump)$', // eslint-disable-line
NAVBoolean: '^(unknown|true|false$)',
NAVTarget: '^(previous|continue|choice.{target=\\S{0,200}[a-zA-Z0-9]})$',