feat: remove matlab api widget and refs (#331)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { parseScoringSettings, parseSettings, parseShowAnswer } from './SettingsParser';
|
||||
import {
|
||||
checklistWithFeebackHints,
|
||||
dropdownWithFeedbackHints,
|
||||
numericWithHints,
|
||||
textInputWithHints,
|
||||
singleSelectWithHints, negativeAttempts,
|
||||
singleSelectWithHints,
|
||||
negativeAttempts,
|
||||
} from './mockData/problemTestData';
|
||||
|
||||
describe('Test Settings to State Parser', () => {
|
||||
@@ -14,14 +14,6 @@ describe('Test Settings to State Parser', () => {
|
||||
expect(settings).toStrictEqual(settingsPayload);
|
||||
});
|
||||
|
||||
test('Test partial fields populated', () => {
|
||||
const settings = parseSettings(dropdownWithFeedbackHints.metadata);
|
||||
const { hints, ...settingsPayload } = dropdownWithFeedbackHints.state.settings;
|
||||
expect(settings).not.toStrictEqual(settingsPayload);
|
||||
const { randomization, matLabApiKey, ...settingsPayloadPartial } = settingsPayload;
|
||||
expect(settings).toStrictEqual(settingsPayloadPartial);
|
||||
});
|
||||
|
||||
test('Test score settings', () => {
|
||||
const scoreSettings = parseScoringSettings(checklistWithFeebackHints.metadata);
|
||||
expect(scoreSettings).toStrictEqual(checklistWithFeebackHints.state.settings.scoring);
|
||||
|
||||
Reference in New Issue
Block a user