refactor(compiler): switch to acorn

This commit is contained in:
Evan You
2019-10-02 11:05:56 -04:00
parent 9c9dd73017
commit b33f0ceff1
4 changed files with 6 additions and 11 deletions

View File

@@ -345,6 +345,6 @@ describe('compiler: expression transform', () => {
test('should handle parse error', () => {
const onError = jest.fn()
parseWithExpressionTransform(`{{ a( }}`, { onError })
expect(onError.mock.calls[0][0].message).toMatch(`Expected ')'`)
expect(onError.mock.calls[0][0].message).toMatch(`Unexpected token (1:4)`)
})
})