|
@@ -63,8 +63,8 @@ describe('compiler: transform v-model', () => {
|
|
|
expect(generate(root).code).toMatchSnapshot()
|
|
expect(generate(root).code).toMatchSnapshot()
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- test('input with v-bind shorthand type should use dynamic model', () => {
|
|
|
|
|
- const root = transformWithModel('<input :type v-model="model" />')
|
|
|
|
|
|
|
+ test('input with v-bind shorthand type after v-model should use dynamic model', () => {
|
|
|
|
|
+ const root = transformWithModel('<input v-model="model" :type/>')
|
|
|
|
|
|
|
|
expect(root.helpers).toContain(V_MODEL_DYNAMIC)
|
|
expect(root.helpers).toContain(V_MODEL_DYNAMIC)
|
|
|
expect(generate(root).code).toMatchSnapshot()
|
|
expect(generate(root).code).toMatchSnapshot()
|