Fixes on StudentOutcomeScore.test.js
flag=none test plan: - Specs pass qa risk: low Change-Id: Id6890387f2d0ec2e483e802dadf2ad679868a51f Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274371 Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> Reviewed-by: Davis Hyer <dhyer@instructure.com> QA-Review: Davis Hyer <dhyer@instructure.com> Product-Review: Davis Hyer <dhyer@instructure.com>
This commit is contained in:
parent
e33afd939c
commit
18743c3ad9
|
@ -129,8 +129,6 @@ const ignoredErrors = [
|
|||
/The prop `name` is marked as required in `Avatar`/,
|
||||
/The prop `onChangeSubmission` is marked as required in `StudentContent`/,
|
||||
/The prop `onSelect` is marked as required in `MailboxSelectionDropdown`/,
|
||||
/The prop `outcome.mastery_points` is marked as required in `StudentOutcomeScore`/,
|
||||
/The prop `outcome.title` is marked as required in `StudentOutcomeScore`/,
|
||||
/The prop `outcomeGroup._id` is marked as required in `GroupDescriptionModal`/,
|
||||
/The prop `outcomeGroup.title` is marked as required in `(GroupDescriptionModal|GroupEditModal|ManageOutcomesView)`/,
|
||||
/The prop `outcomes\[0\].mastery_points` is marked as required in `(Gradebook|ScoresGrid)`/,
|
||||
|
|
|
@ -42,11 +42,15 @@ describe('Gradebook', () => {
|
|||
outcomes: [
|
||||
{
|
||||
id: '1',
|
||||
title: 'outcome 1'
|
||||
title: 'outcome 1',
|
||||
mastery_points: 5,
|
||||
ratings: []
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
title: 'outcome 2'
|
||||
title: 'outcome 2',
|
||||
mastery_points: 5,
|
||||
ratings: []
|
||||
}
|
||||
],
|
||||
rollups: [
|
||||
|
|
|
@ -27,7 +27,10 @@ describe('StudentOutcomeScore', () => {
|
|||
const defaultProps = (props = {}) => {
|
||||
return {
|
||||
outcome: {
|
||||
mastery_points: 5
|
||||
id: '1',
|
||||
title: 'Title',
|
||||
mastery_points: 5,
|
||||
ratings: []
|
||||
},
|
||||
rollup: {
|
||||
rating: {
|
||||
|
|
|
@ -60,6 +60,7 @@ describe('LearningMastery', () => {
|
|||
{
|
||||
id: '1',
|
||||
title: 'outcome 1',
|
||||
mastery_points: 5,
|
||||
ratings
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue