@@ -46,7 +46,7 @@ describe('<Field />', () => {
4646 test ( 'renders an input by default' , ( ) => {
4747 const wrapper = mountWithHoc ( {
4848 template : `
49- <Field name="field" as="input" />
49+ <Field name="field" />
5050 ` ,
5151 } ) ;
5252
@@ -112,7 +112,7 @@ describe('<Field />', () => {
112112 } ;
113113 } ,
114114 template : `
115- <VForm as="form" >
115+ <VForm>
116116 <Field name="field" :rules="rules" v-slot="{ errors, field }">
117117 <input v-bind="field" type="text">
118118 <span id="fieldError">{{ errors[0] }}</span>
@@ -166,7 +166,7 @@ describe('<Field />', () => {
166166 test ( 'listens for change events' , async ( ) => {
167167 const wrapper = mountWithHoc ( {
168168 template : `
169- <VForm as="form" v-slot="{ errors }">
169+ <VForm v-slot="{ errors }">
170170 <Field name="select" as="select" rules="required">
171171 <option value="">0</option>
172172 <option value="1">1</option>
@@ -287,8 +287,8 @@ describe('<Field />', () => {
287287 test ( 'validates target fields using targeted params' , async ( ) => {
288288 const wrapper = mountWithHoc ( {
289289 template : `
290- <VForm as="form" >
291- <Field rules="required" name="confirmation" as="input" />
290+ <VForm>
291+ <Field rules="required" name="confirmation" />
292292
293293 <Field name="password" rules="required|confirmed:@confirmation" v-slot="{ field, errors }">
294294 <input type="password" v-bind="field">
@@ -846,7 +846,7 @@ describe('<Field />', () => {
846846 } ,
847847 template : `
848848 <VForm @submit="onSubmit">
849- <Field name="terms" as="input" type="checkbox" :unchecked-value="false" :value="true" /> Coffee
849+ <Field name="terms" type="checkbox" :unchecked-value="false" :value="true" /> Coffee
850850
851851 <button type="submit">Submit</button>
852852 </VForm>
0 commit comments