Skip to content

Commit fdb5c45

Browse files
committed
test: add ssr comments test
1 parent eb9252b commit fdb5c45

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { ssrCompile } from 'web/server/compiler'
2+
3+
describe('ssrCompile options', () => {
4+
it('comments', done => {
5+
const compiled = ssrCompile(`
6+
<div>
7+
<!-- test comments -->
8+
</div>
9+
`, { comments: true })
10+
11+
expect(compiled.render).toContain('<!-- test comments -->')
12+
})
13+
})

0 commit comments

Comments
 (0)