test: fix tests after missing end tag error location fix

This commit is contained in:
Evan You
2019-12-20 10:10:08 -05:00
parent 9560ab72f8
commit 94d692b0cf
2 changed files with 53 additions and 48 deletions

View File

@@ -62,7 +62,12 @@ describe('compiler + runtime integration', () => {
}
createApp().mount(App, container)
expect(
`Template compilation error: End tag was not found`
`Template compilation error: Element is missing end tag`
).toHaveBeenWarned()
expect(
`
1 | <div v-if>
| ^`.trim()
).toHaveBeenWarned()
expect(`v-if/v-else-if is missing expression`).toHaveBeenWarned()
expect(