diff --git a/packages/compiler-core/__tests__/parse.spec.ts b/packages/compiler-core/__tests__/parse.spec.ts index d556a107..f556f5bc 100644 --- a/packages/compiler-core/__tests__/parse.spec.ts +++ b/packages/compiler-core/__tests__/parse.spec.ts @@ -30,11 +30,13 @@ describe('compiler: parse', () => { }) test('simple text with invalid end tag', () => { + const onError = jest.fn() const ast = baseParse('some text', { - onError: () => {} + onError }) const text = ast.children[0] as TextNode + expect(onError).toBeCalled() expect(text).toStrictEqual({ type: NodeTypes.TEXT, content: 'some text',