mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03:31 +01:00
test: fix type errors (#11325)
* test: fix type errors * chore: use MockedFunction --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -82,7 +82,7 @@ test('resolveBody', async () => {
|
||||
const fd = new globalThis.FormData();
|
||||
fd.append('key', 'value');
|
||||
|
||||
const resolved = await resolveBody(fd);
|
||||
const resolved = await resolveBody(fd as UndiciFormData);
|
||||
|
||||
expect(resolved).toBeInstanceOf(UndiciFormData);
|
||||
expect([...(resolved as UndiciFormData).entries()]).toStrictEqual([['key', 'value']]);
|
||||
|
||||
Reference in New Issue
Block a user