vue2/test/unit/modules/server-compiler/compiler-options.spec.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
318 B
TypeScript
Raw Normal View History

2022-05-31 17:45:10 +08:00
import { ssrCompile } from 'server/compiler'
describe('ssrCompile options', () => {
it('comments', () => {
const compiled = ssrCompile(
`
<div>
<!-- test comments -->
</div>
`,
{ comments: true }
)
expect(compiled.render).toContain('<!-- test comments -->')
})
})