We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6871a3 commit 6f7ec7fCopy full SHA for 6f7ec7f
test/ssr/ssr-string.spec.js
@@ -173,6 +173,29 @@ describe('SSR: renderToString', () => {
173
})
174
175
176
+ it('computed properties', done => {
177
+ renderVmWithOptions({
178
+ template: '<div>{{ b }}</div>',
179
+ data: {
180
+ a: {
181
+ b: 1
182
+ }
183
+ },
184
+ computed: {
185
+ b () {
186
+ return this.a.b + 1
187
188
189
+ created () {
190
+ this.a.b = 2
191
+ expect(this.b).toBe(3)
192
193
+ }, result => {
194
+ expect(result).toContain('<div server-rendered="true">3</div>')
195
+ done()
196
+ })
197
198
+
199
it('renders asynchronous component', done => {
200
renderVmWithOptions({
201
template: `
0 commit comments