fix: merge mess lost a new selector. replaced
This commit is contained in:
@@ -41,6 +41,11 @@ export const ora = {
|
||||
* @return {string} - ORA type (team vs individual)
|
||||
*/
|
||||
type: oraMetadataSelector(data => data.type),
|
||||
/**
|
||||
* Returns file load response config
|
||||
* @return {string} - file upload response config
|
||||
*/
|
||||
fileUploadResponseConfig: oraMetadataSelector(data => data.fileUploadResponseConfig),
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,6 +19,7 @@ const testState = {
|
||||
name: 'test-ora-name',
|
||||
prompt: 'test-ora-prompt',
|
||||
type: 'test-ora-type',
|
||||
fileUploadResponseConfig: 'file-upload-response-config',
|
||||
rubricConfig: {
|
||||
feedback: 'optional',
|
||||
criteria: [
|
||||
@@ -107,6 +108,12 @@ describe('app selectors unit tests', () => {
|
||||
test('rubricConfig selector returns rubricConfig from oraMetadata', () => {
|
||||
testOraSelector(selectors.rubric.config, oraMetadata.rubricConfig);
|
||||
});
|
||||
test('fileUploadResponseConfig returns fileUploadResponseconfig from oraMetadata', () => {
|
||||
testOraSelector(
|
||||
selectors.ora.fileUploadResponseConfig,
|
||||
oraMetadata.fileUploadResponseConfig,
|
||||
);
|
||||
});
|
||||
});
|
||||
describe('rubricConfig selectors', () => {
|
||||
const { rubricConfig } = testState.app.oraMetadata;
|
||||
|
||||
Reference in New Issue
Block a user