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:
Omar Gerardo Soto-Fortuño 2021-09-24 10:19:33 -04:00 committed by Omar Soto-Fortuño
parent e33afd939c
commit 18743c3ad9
4 changed files with 11 additions and 5 deletions

View File

@ -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)`/,

View File

@ -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: [

View File

@ -27,7 +27,10 @@ describe('StudentOutcomeScore', () => {
const defaultProps = (props = {}) => {
return {
outcome: {
mastery_points: 5
id: '1',
title: 'Title',
mastery_points: 5,
ratings: []
},
rollup: {
rating: {

View File

@ -60,6 +60,7 @@ describe('LearningMastery', () => {
{
id: '1',
title: 'outcome 1',
mastery_points: 5,
ratings
}
]