|
|
@ -133,6 +133,7 @@ describe('Directive v-bind', () => { |
|
|
|
expect(vm.$el.getAttribute('id')).toBe(null) |
|
|
|
}) |
|
|
|
|
|
|
|
if (process.env.VBIND_PROP_SHORTHAND) { |
|
|
|
it('.prop modifier shorthand', () => { |
|
|
|
const vm = new Vue({ |
|
|
|
template: '<div><span .text-content="foo"></span><span .inner-html="bar"></span></div>', |
|
|
@ -144,6 +145,7 @@ describe('Directive v-bind', () => { |
|
|
|
expect(vm.$el.children[0].textContent).toBe('hello') |
|
|
|
expect(vm.$el.children[1].innerHTML).toBe('<span>qux</span>') |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
it('.camel modifier', () => { |
|
|
|
const vm = new Vue({ |
|
|
@ -529,6 +531,7 @@ describe('Directive v-bind', () => { |
|
|
|
}).then(done) |
|
|
|
}) |
|
|
|
|
|
|
|
if (process.env.VBIND_PROP_SHORTHAND) { |
|
|
|
it('.prop shorthand', done => { |
|
|
|
const vm = new Vue({ |
|
|
|
template: `<div .[key]="value"></div>`, |
|
|
@ -543,6 +546,7 @@ describe('Directive v-bind', () => { |
|
|
|
expect(vm.$el.textContent).toBe('hello') |
|
|
|
}).then(done) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
it('handle class and style', () => { |
|
|
|
const vm = new Vue({ |
|
|
|