You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

14 lines
348 B

import Vue from 'vue'
describe('Directive v-model dynamic input type', () => {
it('should warn', function () {
new Vue({
data: {
type: 'text',
text: 'hi'
},
template: `<input :type="type" v-model="text">`
}).$mount()
expect(`v-model does not support dynamic input types`).toHaveBeenWarned()
})
})