fix type errors (again)
This commit is contained in:
parent
542b99244a
commit
2bbd5be646
2 changed files with 3 additions and 3 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))] as BlobPart[]);
|
||||
const blob = new Blob([await readFile(join(__dirname, path)) as Buffer<ArrayBuffer>]);
|
||||
|
||||
const body = new FormData();
|
||||
body.append('i', user.i);
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ process.env.NODE_ENV = 'test';
|
|||
|
||||
import { describe, test, expect } from '@jest/globals';
|
||||
import { loadConfig } from '@/config.js';
|
||||
import { getValidator } from '../../../../../test/prelude/get-api-validator.js';
|
||||
import { paramDef } from './create.js';
|
||||
import { getValidator } from '../../../../../../test/prelude/get-api-validator.js';
|
||||
import { paramDef } from '@/server/api/endpoints/notes/create.js';
|
||||
|
||||
const config = loadConfig();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue