Xin Du (Clark)
6 years ago
committed by
Evan You
2 changed files with 18 additions and 1 deletions
@ -0,0 +1,13 @@ |
|||
import { ssrCompile } from 'web/server/compiler' |
|||
|
|||
describe('ssrCompile options', () => { |
|||
it('comments', () => { |
|||
const compiled = ssrCompile(` |
|||
<div> |
|||
<!-- test comments --> |
|||
</div> |
|||
`, { comments: true })
|
|||
|
|||
expect(compiled.render).toContain('<!-- test comments -->') |
|||
}) |
|||
}) |
Loading…
Reference in new issue