refactor(collection): fix/silence linter warnings (#9266)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Almeida
2023-03-25 09:32:52 +00:00
committed by GitHub
parent 5fcd0e48a8
commit d6f4e60efd
2 changed files with 35 additions and 30 deletions

View File

@@ -19,6 +19,7 @@ function createTestCollection(): TestCollection<number> {
function expectInvalidFunctionError(cb: () => unknown, val?: unknown): void {
expect(() => {
// eslint-disable-next-line promise/prefer-await-to-callbacks
cb();
}).toThrowError(new TypeError(`${val} is not a function`));
}