Fixes and additional test cases

This commit is contained in:
Jonathan Putney
2019-11-15 21:54:49 -05:00
parent 4dda8820ee
commit d548330436
7 changed files with 95 additions and 34 deletions

View File

@@ -223,11 +223,14 @@ export class CMIScore extends BaseCMI {
* @return {{min: string, max: string, raw: string}}
*/
toJSON() {
return {
this.jsonString = true;
const result = {
'raw': this.raw,
'min': this.min,
'max': this.max,
};
delete this.jsonString;
return result;
}
}