test(compiler-dom): add DOM compiler integration compile test (#189)
This commit is contained in:
committed by
Evan You
parent
3cdefdbe2d
commit
a84490858f
13
packages/compiler-dom/__tests__/index.spec.ts
Normal file
13
packages/compiler-dom/__tests__/index.spec.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { compile } from '../src'
|
||||
|
||||
describe('compile', () => {
|
||||
it('should contain standard transforms', () => {
|
||||
const { code } = compile(`<div v-text="text"></div>
|
||||
<div v-html="html"></div>
|
||||
<div v-cloak>test</div>
|
||||
<div style="color=red">red</div>
|
||||
<div :style="{color: 'green'}"></div>`)
|
||||
|
||||
expect(code).toMatchSnapshot()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user