fix: don't revert to advanced problem editor when max_attempts is set (#1326)
This commit is contained in:
@@ -664,7 +664,7 @@ export class OLXParser {
|
||||
}
|
||||
|
||||
if (Object.keys(this.problem).some((key) => key.indexOf('@_') !== -1 && !settingsOlxAttributes.includes(key))) {
|
||||
throw new Error('Misc Attributes asscoiated with problem, opening in advanced editor');
|
||||
throw new Error('Misc Attributes associated with problem, opening in advanced editor');
|
||||
}
|
||||
|
||||
const problemType = this.getProblemType();
|
||||
|
||||
@@ -58,7 +58,7 @@ describe('OLXParser', () => {
|
||||
labelDescriptionQuestionOlxParser.getParsedOLXData();
|
||||
} catch (e) {
|
||||
expect(e).toBeInstanceOf(Error);
|
||||
expect(e.message).toBe('Misc Attributes asscoiated with problem, opening in advanced editor');
|
||||
expect(e.message).toBe('Misc Attributes associated with problem, opening in advanced editor');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user