provide correct prop types to StudentFooter

flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I92734176989135d0c4e05b9f63288290e64c2172
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274037
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
QA-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
This commit is contained in:
Davis Hyer 2021-09-21 13:42:07 -06:00
parent 5c9bd1052c
commit 4939a73400
2 changed files with 3 additions and 4 deletions

View File

@ -59,13 +59,12 @@ const ignoredErrors = [
/Function components cannot be given refs/,
/Functions are not valid as a React child/,
/invalid messageType: (notSupported|undefined)/,
/Invalid prop `assignmentID` of type `number` supplied to `StudentFooter`/,
/Invalid prop `background` of value `` supplied to `View`, expected one of/,
/Invalid prop `children` of type `array` supplied to `Transition`/,
/Invalid prop `children` supplied to `(Option|View)`/,
/Invalid prop `conversation._id` of type `number` supplied to `ComposeModalManager`/,
/Invalid prop `courseId` of type `number` supplied to `(DirectShareUserModal|K5Announcement)`/,
/Invalid prop `courseID` of type `number` supplied to `(StudentFooter|StudentLastAttended)`/,
/Invalid prop `courseID` of type `number` supplied to `StudentLastAttended`/,
/Invalid prop `currentFolder` of type `Object` supplied to `FilePreview`/,
/Invalid prop `currentUserId` of type `number` supplied to `AddStudentModal`/,
/Invalid prop `disabled` of type `object` supplied to `(Checkbox|ToggleFacade)`/,

View File

@ -159,8 +159,8 @@ describe('SubmissionManager', () => {
beforeEach(() => {
window.ENV = {
CONFETTI_ENABLED: enabled,
ASSIGNMENT_ID: 1,
COURSE_ID: 1
ASSIGNMENT_ID: '1',
COURSE_ID: '1'
}
})