provide correct postedAt prop type

flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Id06f390ffabea0642ed67fc7c60dfabc125e487a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274379
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-24 09:48:44 -06:00
parent 2906186fce
commit b14709fbae
2 changed files with 1 additions and 2 deletions

View File

@ -64,7 +64,6 @@ const ignoredErrors = [
/Invalid prop `conversation._id` of type `number` supplied to `ComposeModalManager`/,
/Invalid prop `editorOptions.plugins` of type `string` supplied to `(ForwardRef|RCEWrapper)`/, // https://instructure.atlassian.net/browse/MAT-453
/Invalid prop `editorOptions.toolbar\[0\]` of type `string` supplied to `(ForwardRef|RCEWrapper)`/, // https://instructure.atlassian.net/browse/MAT-453
/Invalid prop `firstAnnouncement.postedDate` of type `String` supplied to `K5Announcement`/,
/Invalid prop `heading` of type `object` supplied to `Billboard`/, // https://instructure.atlassian.net/browse/QUIZ-8870
/Invalid prop `headingAs` of value `h4` supplied to `Billboard`/,
/Invalid prop `id` of type `number` supplied to `Option`/,

View File

@ -232,7 +232,7 @@ describe('K5Announcement', () => {
it('handles 2 announcements with identical posted_at dates', async () => {
const postedAt = '2021-08-01T18:00:00Z'
const props = getProps({}, {postedDate: postedAt})
const props = getProps({}, {postedDate: Date.parse(postedAt)})
fetchMock.get(
/\/api\/v1\/announcements/,
{