Skip to content

Commit 89f2824

Browse files
committed
Adjust failing type checks
1 parent 6967171 commit 89f2824

File tree

3 files changed

+1
-24
lines changed

3 files changed

+1
-24
lines changed

packages/react/src/Pagehead/Pagehead.stories.tsx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,4 @@ Playground.argTypes = {
3535
options: ['div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
3636
},
3737
},
38-
forwardedAs: {
39-
controls: false,
40-
table: {
41-
disable: true,
42-
},
43-
},
44-
ref: {
45-
controls: false,
46-
table: {
47-
disable: true,
48-
},
49-
},
50-
theme: {
51-
controls: false,
52-
table: {
53-
disable: true,
54-
},
55-
},
5638
}

packages/react/src/Pagehead/Pagehead.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react'
22
import Pagehead from '../Pagehead'
3-
import theme from '../theme'
43
import {behavesAsComponent, checkExports} from '../utils/testing'
54
import {render as HTMLRender} from '@testing-library/react'
65
import axe from 'axe-core'
@@ -13,7 +12,7 @@ describe('Pagehead', () => {
1312
})
1413

1514
it('should have no axe violations', async () => {
16-
const {container} = HTMLRender(<Pagehead theme={theme}>Pagehead</Pagehead>)
15+
const {container} = HTMLRender(<Pagehead>Pagehead</Pagehead>)
1716
const results = await axe.run(container)
1817
expect(results).toHaveNoViolations()
1918
})

packages/react/src/Pagehead/Pagehead.types.test.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,3 @@ import Pagehead from '../Pagehead'
44
export function shouldAcceptCallWithNoProps() {
55
return <Pagehead />
66
}
7-
8-
export function shouldNotAcceptSystemProps() {
9-
return <Pagehead backgroundColor="orchid" />
10-
}

0 commit comments

Comments
 (0)