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.
15 lines
348 B
15 lines
348 B
8 years ago
|
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()
|
||
|
})
|
||
|
})
|