Skip to content

Commit

Permalink
delete unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
narthur committed Dec 25, 2024
1 parent 6ad9252 commit 2a57af9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/lib/test/expectations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,3 @@ export function filterByExpectation<T>(items: T[], expectation: unknown): T[] {
return false;
});
}

export function filterExpectations<T, E>(item: T, expectations: E[]): E[] {
return expectations.filter((expectation) => {
try {
expect(item).toEqual(expectation);
return true;
} catch (_e) {
// noop
}
return false;
});
}

0 comments on commit 2a57af9

Please sign in to comment.