Skip to content

Commit c409d4f

Browse files
committed
test(types): fix dts test
1 parent 6fba241 commit c409d4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-dts/defineComponent.test-d.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ describe('with object props', () => {
172172

173173
// wrong prop types
174174
expectError(
175-
<MyComponent a={'wrong type'} b="foo" dd={['foo']} ddd={['foo']} />
175+
<MyComponent a={'wrong type'} b="foo" dd={{ n: 1 }} ddd={['foo']} />
176176
)
177-
expectError(<MyComponent b="foo" dd={[123]} ddd={['foo']} />)
177+
expectError(<MyComponent b="foo" dd={{ n: 'string' }} ddd={['foo']} />)
178178
})
179179

180180
describe('type inference w/ optional props declaration', () => {

0 commit comments

Comments
 (0)