From 2a57af9201540344f929c236c27321d1ecaf1ed1 Mon Sep 17 00:00:00 2001 From: Nathan Arthur Date: Wed, 25 Dec 2024 15:17:23 -0500 Subject: [PATCH] delete unused function --- src/lib/test/expectations.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/lib/test/expectations.ts b/src/lib/test/expectations.ts index c876e9fe6..bfd4b339d 100644 --- a/src/lib/test/expectations.ts +++ b/src/lib/test/expectations.ts @@ -9,15 +9,3 @@ export function filterByExpectation(items: T[], expectation: unknown): T[] { return false; }); } - -export function filterExpectations(item: T, expectations: E[]): E[] { - return expectations.filter((expectation) => { - try { - expect(item).toEqual(expectation); - return true; - } catch (_e) { - // noop - } - return false; - }); -}