(template: string, options: CompilerOptions = {})
| 16 | import { transformExpression } from '../../src/transforms/transformExpression' |
| 17 | |
| 18 | function parseWithVOn(template: string, options: CompilerOptions = {}) { |
| 19 | const ast = parse(template, options) |
| 20 | transform(ast, { |
| 21 | nodeTransforms: [transformExpression, transformElement, transformFor], |
| 22 | directiveTransforms: { |
| 23 | on: transformOn, |
| 24 | }, |
| 25 | ...options, |
| 26 | }) |
| 27 | return { |
| 28 | root: ast, |
| 29 | node: ast.children[0] as ElementNode, |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | describe('compiler: transform v-on', () => { |
| 34 | test('basic', () => { |
no test coverage detected