index.spec.ts 368 B

12345678910111213
  1. import { compile } from '../src'
  2. describe('compile', () => {
  3. it('should contain standard transforms', () => {
  4. const { code } = compile(`<div v-text="text"></div>
  5. <div v-html="html"></div>
  6. <div v-cloak>test</div>
  7. <div style="color:red">red</div>
  8. <div :style="{color: 'green'}"></div>`)
  9. expect(code).toMatchSnapshot()
  10. })
  11. })