We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd19db9 commit 70c8c58Copy full SHA for 70c8c58
packages/compiler-core/__tests__/parse.spec.ts
@@ -30,11 +30,13 @@ describe('compiler: parse', () => {
30
})
31
32
test('simple text with invalid end tag', () => {
33
+ const onError = jest.fn()
34
const ast = baseParse('some text</div>', {
- onError: () => {}
35
+ onError
36
37
const text = ast.children[0] as TextNode
38
39
+ expect(onError).toBeCalled()
40
expect(text).toStrictEqual({
41
type: NodeTypes.TEXT,
42
content: 'some text',
0 commit comments