|
|
@@ -374,6 +374,18 @@ describe('SSR: renderToString', () => {
|
|
|
})
|
|
|
})
|
|
|
|
|
|
+ it('v-html with null value', done => {
|
|
|
+ renderVmWithOptions({
|
|
|
+ template: '<div><div v-html="text"></div></div>',
|
|
|
+ data: {
|
|
|
+ text: null
|
|
|
+ }
|
|
|
+ }, result => {
|
|
|
+ expect(result).toContain('<div data-server-rendered="true"><div></div></div>')
|
|
|
+ done()
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
it('v-text', done => {
|
|
|
renderVmWithOptions({
|
|
|
template: '<div><div v-text="text"></div></div>',
|
|
|
@@ -386,6 +398,18 @@ describe('SSR: renderToString', () => {
|
|
|
})
|
|
|
})
|
|
|
|
|
|
+ it('v-text with null value', done => {
|
|
|
+ renderVmWithOptions({
|
|
|
+ template: '<div><div v-text="text"></div></div>',
|
|
|
+ data: {
|
|
|
+ text: null
|
|
|
+ }
|
|
|
+ }, result => {
|
|
|
+ expect(result).toContain('<div data-server-rendered="true"><div></div></div>')
|
|
|
+ done()
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
it('child component (hoc)', done => {
|
|
|
renderVmWithOptions({
|
|
|
template: '<child class="foo" :msg="msg"></child>',
|