forked from mirrors/misskey
fix test
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user