test(types): fix dts test
This commit is contained in:
parent
6fba241850
commit
c409d4f297
@ -172,9 +172,9 @@ describe('with object props', () => {
|
|||||||
|
|
||||||
// wrong prop types
|
// wrong prop types
|
||||||
expectError(
|
expectError(
|
||||||
<MyComponent a={'wrong type'} b="foo" dd={['foo']} ddd={['foo']} />
|
<MyComponent a={'wrong type'} b="foo" dd={{ n: 1 }} ddd={['foo']} />
|
||||||
)
|
)
|
||||||
expectError(<MyComponent b="foo" dd={[123]} ddd={['foo']} />)
|
expectError(<MyComponent b="foo" dd={{ n: 'string' }} ddd={['foo']} />)
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('type inference w/ optional props declaration', () => {
|
describe('type inference w/ optional props declaration', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user