From f3aab7e214f5d8e9bc1bce1722b364bd59bbf9d4 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Sat, 30 Jan 2021 15:01:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(compiler=20=5F=5Ftests=5F=5F):=201.=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9alipay=E3=80=81toutiao=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E4=B8=8A=E4=BD=BF=E7=94=A8=E6=95=B0=E7=BB=84class=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B=202.=20=E6=96=B0=E5=A2=9Ealipay?= =?UTF-8?q?=E3=80=81toutiao=E5=AF=B9=E4=BA=8E=E6=95=B0=E7=BB=84class?= =?UTF-8?q?=E7=9A=84=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../__tests__/compiler-mp-alipay.spec.js | 6 +++++- .../__tests__/compiler-mp-toutiao.spec.js | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/uni-template-compiler/__tests__/compiler-mp-alipay.spec.js b/packages/uni-template-compiler/__tests__/compiler-mp-alipay.spec.js index 43bc3a950a..89f1de5b42 100644 --- a/packages/uni-template-compiler/__tests__/compiler-mp-alipay.spec.js +++ b/packages/uni-template-compiler/__tests__/compiler-mp-alipay.spec.js @@ -100,7 +100,7 @@ describe('mp:compiler-mp-alipay', () => { ) assertCodegen( '

5

', - '5' + '5' ) assertCodegen( '
6
', @@ -123,6 +123,10 @@ describe('mp:compiler-mp-alipay', () => { '

9

', '9' ) + assertCodegen( + '

10

', + '10' + ) }) it('generate getPhoneNumber', () => { diff --git a/packages/uni-template-compiler/__tests__/compiler-mp-toutiao.spec.js b/packages/uni-template-compiler/__tests__/compiler-mp-toutiao.spec.js index 92a6c8d95f..e59535f44e 100644 --- a/packages/uni-template-compiler/__tests__/compiler-mp-toutiao.spec.js +++ b/packages/uni-template-compiler/__tests__/compiler-mp-toutiao.spec.js @@ -48,7 +48,7 @@ describe('mp:compiler-mp-toutiao', () => { ) assertCodegen( '

5

', - '5' + '5' ) assertCodegen( '
6
', @@ -71,6 +71,10 @@ describe('mp:compiler-mp-toutiao', () => { '

9

', '9' ) + assertCodegen( + '

10

', + '10' + ) }) it('generate v-show directive', () => { -- GitLab