提交 d11ce311 编写于 作者: Q qiang

test(mp-alipay): 增加支付宝小程序插件测试 #2410

上级 92d682a1
......@@ -54,6 +54,15 @@ describe('mp:compiler-mp-alipay', () => {
wxComponents: { component1: '/mycomponents/component1' }
}
)
assertCodegen(
'<credit-pay @change="onChange">text</credit-pay>',
'<credit-pay onChange="__e" vue-id="551070e6-1" data-event-opts="{{[[\'^change\',[[\'onChange\']]]]}}" data-com-type="wx" ref="__r" onVueInit="__l">text</credit-pay>',
undefined,
undefined,
{
wxComponents: { 'credit-pay': 'plugin://myPlugin/CreditPay' }
}
)
})
it('generate slot fallback content', () => {
assertCodegen(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册