diff --git a/packages/uni-mp-baidu/__tests__/vFor.spec.ts b/packages/uni-mp-baidu/__tests__/vFor.spec.ts index 2d4a84b76b6619eb9b5fa26bb721e5e867f7bd38..08f87d416888575e5fc1bbca1bbe88931c91388f 100644 --- a/packages/uni-mp-baidu/__tests__/vFor.spec.ts +++ b/packages/uni-mp-baidu/__tests__/vFor.spec.ts @@ -4,7 +4,7 @@ describe(`mp-baidu: transform v-for`, () => { test(`with key`, () => { assert( ``, - ``, + ``, `(_ctx, _cache) => { return { a: _f(_ctx.items, (item, k0, i0) => { return { a: item.id }; }) } }` @@ -13,7 +13,7 @@ describe(`mp-baidu: transform v-for`, () => { test(`without key`, () => { assert( ``, - ``, + ``, `(_ctx, _cache) => { return { a: _f(_ctx.items, (item, k0, i0) => { return {}; }) } }` diff --git a/packages/uni-mp-baidu/__tests__/vSlot.spec.ts b/packages/uni-mp-baidu/__tests__/vSlot.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..a65562839e4c371956f129bb5d5a3203f979960f --- /dev/null +++ b/packages/uni-mp-baidu/__tests__/vSlot.spec.ts @@ -0,0 +1,95 @@ +import { assert } from './testUtils' + +describe('compiler: transform v-slot', () => { + test('default slot', () => { + assert( + `