(template: string, options: CompilerOptions = {})
| 11 | import { DOMErrorCodes } from '../../src/errors' |
| 12 | |
| 13 | function transformWithVHtml(template: string, options: CompilerOptions = {}) { |
| 14 | const ast = parse(template) |
| 15 | transform(ast, { |
| 16 | nodeTransforms: [transformElement], |
| 17 | directiveTransforms: { |
| 18 | html: transformVHtml, |
| 19 | }, |
| 20 | ...options, |
| 21 | }) |
| 22 | return ast |
| 23 | } |
| 24 | |
| 25 | describe('compiler: v-html transform', () => { |
| 26 | it('should convert v-html to innerHTML', () => { |
no test coverage detected