Skip to content

Commit 35cd671

Browse files
committed
test(babel-sugar-v-on): add v-on:click_native_capture test case
1 parent e76d78e commit 35cd671

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/babel-sugar-v-on/test/snapshot.js

+9
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ const tests = [
2929
from: `render(h => <div v-on:click_native={foo}>test</div>)`,
3030
to: `render(h => <div nativeOn-click={foo}>test</div>);`,
3131
},
32+
{
33+
name: 'v-on:click_native_capture',
34+
from: `render(h => <div v-on:click_native_capture={foo}>test</div>)`,
35+
to: `render(h => <div {...{
36+
nativeOn: {
37+
"!click": foo
38+
}
39+
}}>test</div>);`,
40+
},
3241
{
3342
name: 'v-on:click with arrow function expression',
3443
from: `render(h => <div v-on:click={myEvent => foo(1, 2, 3, $myEvent)}>test</div>)`,

0 commit comments

Comments
 (0)