From cb299290e235414206f852fbf40a1d77c0c538da Mon Sep 17 00:00:00 2001 From: edison Date: Fri, 16 Aug 2024 10:24:44 +0800 Subject: [PATCH] Add more test case --- packages/runtime-core/__tests__/components/KeepAlive.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/runtime-core/__tests__/components/KeepAlive.spec.ts b/packages/runtime-core/__tests__/components/KeepAlive.spec.ts index 3a72b7fd4..4ec237f4b 100644 --- a/packages/runtime-core/__tests__/components/KeepAlive.spec.ts +++ b/packages/runtime-core/__tests__/components/KeepAlive.spec.ts @@ -410,6 +410,10 @@ describe('KeepAlive', () => { await assertNameMatch({ include: 'one , two', exclude: 'two' }) }) + test('include + exclude with space at both ends', async () => { + await assertNameMatch({ include: ' one , two ', exclude: ' two ' }) + }) + test('max', async () => { const spyAC = vi.fn() const spyBC = vi.fn()