fix: don't revert to advanced problem editor when max_attempts is set (#1326)

This commit is contained in:
Braden MacDonald
2024-09-26 09:50:28 -07:00
committed by GitHub
parent 3662fadad4
commit 95c17537c1
3 changed files with 3 additions and 3 deletions

View File

@@ -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();

View File

@@ -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');
}
});
});