provide correct label prop type
flag=none test plan: - specs pass qa risk: low Change-Id: I3e715619857e027401dedf7ef72d8241585c39fd Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274050 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:
parent
b7086d4ce6
commit
64809fc4b0
|
@ -73,7 +73,6 @@ const ignoredErrors = [
|
|||
/Invalid prop `headingAs` of value `h4` supplied to `Billboard`/,
|
||||
/Invalid prop `homeroomAnnouncements\[0\].courseId` of type `number` supplied to `HomeroomAnnouncementsLayout`/,
|
||||
/Invalid prop `id` of type `number` supplied to `Option`/,
|
||||
/Invalid prop `label` of type `function` supplied to `StepItem`/,
|
||||
/Invalid prop `open` of type `number` supplied to `(Modal|ModalSpinner)`/,
|
||||
/Invalid prop `outcomeContextId` of type `number` supplied to `ManageOutcomeItem`/,
|
||||
/Invalid prop `outcomesGroup.contextId` of type `number` supplied to `FindOutcomesView`, expected `string`/,
|
||||
|
|
|
@ -21,7 +21,7 @@ import {render} from '@testing-library/react'
|
|||
import StepItem from '../index'
|
||||
|
||||
it('should render', () => {
|
||||
const {getByTestId} = render(<StepItem label={() => {}} />)
|
||||
const {getByTestId} = render(<StepItem label="Foo" />)
|
||||
expect(getByTestId('step-item-step')).toBeInTheDocument()
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue