From 3e941ac194f54d08df23c912f22b3801d2a8fb86 Mon Sep 17 00:00:00 2001 From: unional Date: Tue, 12 Sep 2023 12:38:55 -0700 Subject: [PATCH] test: add more ArrayPlus.Filter tests --- type-plus/ts/array/array_plus.filter.spec.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/type-plus/ts/array/array_plus.filter.spec.ts b/type-plus/ts/array/array_plus.filter.spec.ts index e5a50b0996..11a8e6c1d8 100644 --- a/type-plus/ts/array/array_plus.filter.spec.ts +++ b/type-plus/ts/array/array_plus.filter.spec.ts @@ -12,3 +12,12 @@ it('can override never case', () => { it('can override not array case', () => { testType.equal, 1>(true) }) + +it('filter type within the array matching the criteria', () => { + testType.equal, string>, string[]>(true) +}) + +it('defaults to match true', () => { + testType.equal>, true[]>(true) + testType.equal>, true[]>(true) +})