fix type errors in test/utils.ts
This commit is contained in:
parent
0f2ae5e3dc
commit
b3b08e2315
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue