compiler-options.spec.js 304 B

12345678910111213
  1. import { ssrCompile } from 'web/server/compiler'
  2. describe('ssrCompile options', () => {
  3. it('comments', () => {
  4. const compiled = ssrCompile(`
  5. <div>
  6. <!-- test comments -->
  7. </div>
  8. `, { comments: true })
  9. expect(compiled.render).toContain('<!-- test comments -->')
  10. })
  11. })