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()