test: fix tests
This commit is contained in:
@@ -1514,7 +1514,7 @@ describe('compiler: parse', () => {
|
||||
test('invalid html', () => {
|
||||
expect(() => {
|
||||
parse(`<div>\n<span>\n</div>\n</span>`)
|
||||
}).toThrow('End tag was not found. (3:1)')
|
||||
}).toThrow('End tag was not found.')
|
||||
|
||||
const spy = jest.fn()
|
||||
const ast = parse(`<div>\n<span>\n</div>\n</span>`, {
|
||||
|
||||
@@ -380,7 +380,7 @@ describe('compiler: expression transform', () => {
|
||||
const onError = jest.fn()
|
||||
parseWithExpressionTransform(`{{ a( }}`, { onError })
|
||||
expect(onError.mock.calls[0][0].message).toMatch(
|
||||
`Invalid JavaScript expression. (1:4)`
|
||||
`Invalid JavaScript expression.`
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user