2
0
Evan You 9 жил өмнө
parent
commit
a2a9110ea1

+ 3 - 1
test/weex/helpers/index.js

@@ -5,7 +5,9 @@ domModule.updateFinish = domModule.createFinish = domModule.refreshFinish = () =
 import * as Vue from '../../../packages/weex-vue-framework'
 import { compile } from '../../../packages/weex-template-compiler'
 import { Runtime, Instance } from 'weex-vdom-tester'
-import { config } from 'weex-js-runtime'
+import { init, config } from 'weex-js-runtime'
+
+init()
 
 // http://stackoverflow.com/a/35478115
 const matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g

+ 1 - 1
test/weex/runtime/framework.spec.js

@@ -455,7 +455,7 @@ describe('framework APIs', () => {
         },
         el: "body"
       })
-    `, { a: 1, b: 2 })
+    `, undefined, { a: 1, b: 2 })
     expect(JSON.parse(instance2.getRealRoot().children[0].attr.value)).toEqual({ a: 1, b: 2, env: DEFAULT_ENV })
   })