Skip to content

Commit cccc277

Browse files
committed
fix eslint
1 parent 4e38b54 commit cccc277

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/weex/compiler/compile.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ describe('compile class', () => {
2525
it('should compile data bindings with children', () => {
2626
const { render, staticRenderFns, errors } = compile(`<foo :a="b"><text>Hello</text></foo>`)
2727
expect(render).toEqual(`with(this){return _h('foo',{attrs:{"a":b}},[_h('text',["Hello"])])}`)
28+
expect(staticRenderFns).toEqual([])
2829
expect(errors).toEqual([])
2930
})
3031

@@ -38,6 +39,7 @@ describe('compile class', () => {
3839
</refresh>
3940
`)
4041
expect(render).toEqual(`with(this){return _h('refresh',{staticClass:["refresh"],staticStyle:{flexDirection:"row"},attrs:{"display":displayRefresh},on:{"refresh":handleRefresh}},[_h('loading-indicator'),_h('text',{staticStyle:{marginLeft:"36px",color:"#eee"}},["Load more..."])])}`)
42+
expect(staticRenderFns).toEqual([])
4143
expect(errors).toEqual([])
4244
})
4345
})

0 commit comments

Comments
 (0)