Skip to content

Commit a37f944

Browse files
asselinkazupon
authored andcommitted
Fix mockRender to work with the changes in compiler API introduced in vue/vue-template-compiler 2.1.5 and vue-template-es2015-compiler 1.3.2 (#550)
1 parent 2c7440d commit a37f944

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ function test (options, assert) {
7373

7474
function mockRender (options, data) {
7575
return options.render.call(Object.assign({
76-
_h (tag, data, children) {
76+
_v (val) {
77+
return val
78+
},
79+
_self: {},
80+
$createElement (tag, data, children) {
7781
if (Array.isArray(data)) {
7882
children = data
7983
data = null

0 commit comments

Comments
 (0)