mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
refactor(collection): fix/silence linter warnings (#9266)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -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`));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user