Skip to content

Commit

Permalink
Adjust failing type checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrohan committed Dec 19, 2024
1 parent 6967171 commit 89f2824
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 deletions.
18 changes: 0 additions & 18 deletions packages/react/src/Pagehead/Pagehead.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,4 @@ Playground.argTypes = {
options: ['div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
},
},
forwardedAs: {
controls: false,
table: {
disable: true,
},
},
ref: {
controls: false,
table: {
disable: true,
},
},
theme: {
controls: false,
table: {
disable: true,
},
},
}
3 changes: 1 addition & 2 deletions packages/react/src/Pagehead/Pagehead.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react'
import Pagehead from '../Pagehead'
import theme from '../theme'
import {behavesAsComponent, checkExports} from '../utils/testing'
import {render as HTMLRender} from '@testing-library/react'
import axe from 'axe-core'
Expand All @@ -13,7 +12,7 @@ describe('Pagehead', () => {
})

it('should have no axe violations', async () => {
const {container} = HTMLRender(<Pagehead theme={theme}>Pagehead</Pagehead>)
const {container} = HTMLRender(<Pagehead>Pagehead</Pagehead>)
const results = await axe.run(container)
expect(results).toHaveNoViolations()
})
Expand Down
4 changes: 0 additions & 4 deletions packages/react/src/Pagehead/Pagehead.types.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@ import Pagehead from '../Pagehead'
export function shouldAcceptCallWithNoProps() {
return <Pagehead />
}

export function shouldNotAcceptSystemProps() {
return <Pagehead backgroundColor="orchid" />
}

0 comments on commit 89f2824

Please sign in to comment.