Evan You
8 years ago
2 changed files with 23 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||
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() |
|||
}) |
|||
}) |
Loading…
Reference in new issue