Skip to content

Commit 0591f5e

Browse files
committed
update
1 parent 4dfb7c2 commit 0591f5e

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

tests/unit/component.spec.js

+5-17
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,11 @@ const ContainerQueryApp = {
1010
data () {
1111
return { params: {} }
1212
},
13-
methods: {
14-
handleChange (params) {
15-
this.params = params
16-
}
17-
},
18-
render (h) {
19-
return (
20-
<container-query
21-
query={this.query}
22-
initialSize={this.initialSize}
23-
onChange={this.handleChange}
24-
>
25-
<pre class="app">{ this.params }</pre>
26-
</container-query>
27-
)
28-
}
13+
template: `
14+
<container-query :query="query" :initialSize="initialSize" v-model="params">
15+
<pre class="app">{{ params }}</pre>
16+
</container-query>
17+
`
2918
}
3019

3120
describe('ContainerQuery', () => {
@@ -55,4 +44,3 @@ describe('ContainerQuery', () => {
5544
expect(wrapper.is('pre.app')).toBe(true)
5645
})
5746
})
58-

0 commit comments

Comments
 (0)