fix test
This commit is contained in:
parent
f242892382
commit
1d8e183883
|
@ -190,7 +190,8 @@ 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 buffer = await readFile(join(__dirname, path));
|
||||
const blob = new Blob([new Uint8Array(buffer)]);
|
||||
|
||||
const body = new FormData();
|
||||
body.append('i', user.i);
|
||||
|
|
Loading…
Reference in New Issue