|
@@ -56,9 +56,9 @@ describe('Options template', () => {
|
|
|
template: '<div v-if="!@"><span>{{ a"" }}</span><span>{{ do + 1 }}</span></div>'
|
|
template: '<div v-if="!@"><span>{{ a"" }}</span><span>{{ do + 1 }}</span></div>'
|
|
|
}).$mount()
|
|
}).$mount()
|
|
|
expect('Error compiling template').toHaveBeenWarned()
|
|
expect('Error compiling template').toHaveBeenWarned()
|
|
|
- expect('invalid expression: v-if="!@"').toHaveBeenWarned()
|
|
|
|
|
- expect('invalid expression: {{ a"" }}').toHaveBeenWarned()
|
|
|
|
|
- expect('avoid using JavaScript keyword as property name: "do" in expression {{ do + 1 }}').toHaveBeenWarned()
|
|
|
|
|
|
|
+ expect('Raw expression: v-if="!@"').toHaveBeenWarned()
|
|
|
|
|
+ expect('Raw expression: {{ a"" }}').toHaveBeenWarned()
|
|
|
|
|
+ expect('avoid using JavaScript keyword as property name: "do"').toHaveBeenWarned()
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
it('should not warn $ prefixed keywords', () => {
|
|
it('should not warn $ prefixed keywords', () => {
|
|
@@ -75,7 +75,7 @@ describe('Options template', () => {
|
|
|
expect('Error compiling template').toHaveBeenWarned()
|
|
expect('Error compiling template').toHaveBeenWarned()
|
|
|
expect('invalid v-for alias "1"').toHaveBeenWarned()
|
|
expect('invalid v-for alias "1"').toHaveBeenWarned()
|
|
|
expect('invalid v-for iterator "2"').toHaveBeenWarned()
|
|
expect('invalid v-for iterator "2"').toHaveBeenWarned()
|
|
|
- expect('invalid expression: v-for="(1, 2) in a----"').toHaveBeenWarned()
|
|
|
|
|
|
|
+ expect('Raw expression: v-for="(1, 2) in a----"').toHaveBeenWarned()
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
it('warn error in generated function (v-on)', () => {
|
|
it('warn error in generated function (v-on)', () => {
|