]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
test(types): fix dts test
authorEvan You <yyx990803@gmail.com>
Fri, 3 Apr 2020 14:51:17 +0000 (10:51 -0400)
committerEvan You <yyx990803@gmail.com>
Fri, 3 Apr 2020 14:51:17 +0000 (10:51 -0400)
test-dts/defineComponent.test-d.tsx

index 07ee8dcc00014d9b2311fdef92909fb1226dad51..7df730445b13ff2112b0986cc043a5a47b40b556 100644 (file)
@@ -172,9 +172,9 @@ describe('with object props', () => {
 
   // wrong prop types
   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', () => {