Skip to content

Commit

Permalink
Change key for learning_activity in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sairina committed Apr 20, 2022
1 parent 750c8b6 commit 13b58ab
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ describe('channelEdit utils', () => {
title: 'Exercise',
kind: ContentKindsNames.EXERCISE,
license: { id: 8 },
learning_activities: { '#j8L0eq3': true },
learning_activities: { test: true },
extra_fields: {
mastery_model: MasteryModelsNames.DO_ALL,
options: {
Expand Down Expand Up @@ -476,7 +476,7 @@ describe('channelEdit utils', () => {
title: 'A node',
license: { id: 8 },
kind,
learning_activities: { '#j8L0eq3': true },
learning_activities: { test: true },
extra_fields: {
options: {
completion_criteria: {
Expand Down Expand Up @@ -568,7 +568,7 @@ describe('channelEdit utils', () => {
title: '',
kind: 'document',
license: 8,
learning_activities: { '#j8L0eq3': true },
learning_activities: { test: true },
})
).toEqual([ValidationErrors.TITLE_REQUIRED]);
});
Expand All @@ -579,7 +579,7 @@ describe('channelEdit utils', () => {
title: 'Title',
kind: 'document',
license: null,
learning_activities: { '#j8L0eq3': true },
learning_activities: { test: true },
},
[ValidationErrors.LICENSE_REQUIRED],
],
Expand All @@ -588,7 +588,7 @@ describe('channelEdit utils', () => {
title: 'Title',
kind: 'document',
license: 8,
learning_activities: { '#j8L0eq3': true },
learning_activities: { test: true },
},
[],
],
Expand All @@ -598,7 +598,7 @@ describe('channelEdit utils', () => {
title: 'Title',
kind: 'topic',
license: null,
learning_activities: { '#j8L0eq3': true },
learning_activities: { test: true },
},
[],
],
Expand All @@ -608,7 +608,7 @@ describe('channelEdit utils', () => {
title: 'Title',
freeze_authoring_data: true,
license: null,
learning_activities: { '#j8L0eq3': true },
learning_activities: { test: true },
},
[],
],
Expand All @@ -622,7 +622,7 @@ describe('channelEdit utils', () => {
{
title: 'Title',
license: 1,
learning_activities: { '#j8L0eq3': true },
learning_activities: { test: true },
},
[ValidationErrors.COPYRIGHT_HOLDER_REQUIRED],
],
Expand All @@ -631,7 +631,7 @@ describe('channelEdit utils', () => {
title: 'Title',
license: 1,
copyright_holder: 'Copyright holder',
learning_activities: { '#j8L0eq3': true },
learning_activities: { test: true },
},
[],
],
Expand All @@ -646,7 +646,7 @@ describe('channelEdit utils', () => {
title: 'Title',
license: 9,
copyright_holder: 'Copyright holder',
learning_activities: { '#j8L0eq3': true },
learning_activities: { test: true },
},
[ValidationErrors.LICENSE_DESCRIPTION_REQUIRED],
],
Expand All @@ -656,7 +656,7 @@ describe('channelEdit utils', () => {
license: 9,
copyright_holder: 'Copyright holder',
license_description: 'My custom license',
learning_activities: { '#j8L0eq3': true },
learning_activities: { test: true },
},
[],
],
Expand All @@ -670,7 +670,7 @@ describe('channelEdit utils', () => {
title: 'Title',
kind: 'exercise',
license: 8,
learning_activities: { '#j8L0eq3': true },
learning_activities: { test: true },
},
[ValidationErrors.MASTERY_MODEL_REQUIRED],
],
Expand All @@ -679,7 +679,7 @@ describe('channelEdit utils', () => {
title: 'Title',
kind: 'exercise',
license: 8,
learning_activities: { '#j8L0eq3': true },
learning_activities: { test: true },
extra_fields: {
mastery_model: 'do_all',
},
Expand All @@ -691,7 +691,7 @@ describe('channelEdit utils', () => {
title: 'Title',
kind: 'exercise',
license: 8,
learning_activities: { '#j8L0eq3': true },
learning_activities: { test: true },
extra_fields: {
mastery_model: 'm_of_n',
m: 3,
Expand All @@ -709,7 +709,7 @@ describe('channelEdit utils', () => {
title: 'Title',
kind: 'exercise',
license: 8,
learning_activities: { '#j8L0eq3': true },
learning_activities: { test: true },
extra_fields: {
mastery_model: 'm_of_n',
m: 3,
Expand All @@ -723,7 +723,7 @@ describe('channelEdit utils', () => {
title: 'Title',
kind: 'exercise',
license: 8,
learning_activities: { '#j8L0eq3': true },
learning_activities: { test: true },
extra_fields: {
mastery_model: 'm_of_n',
m: 2,
Expand Down

0 comments on commit 13b58ab

Please sign in to comment.