fix type errors in test/utils.ts

This commit is contained in:
Hazelnoot 2025-10-03 11:50:58 -04:00
parent 0f2ae5e3dc
commit b3b08e2315

View file

@ -187,7 +187,7 @@ export async function uploadFile(
path = '../../test/resources/192.jpg',
): Promise<Misskey.entities.DriveFile> {
const filename = path.split('/').pop() ?? 'untitled';
const blob = new Blob([await readFile(join(__dirname, path))]);
const blob = new Blob([await readFile(join(__dirname, path))] as BlobPart[]);
const body = new FormData();
body.append('i', user.i);