diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-10-31 15:30:22 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-31 15:30:22 +0900 |
| commit | fc65190ef7b687650018cccfee2219bf00827f70 (patch) | |
| tree | d2482c79dd095509b8b57dac28db460fb812196a /test/utils.ts | |
| parent | fix: Fix #7895 (#7937) (diff) | |
| download | sharkey-fc65190ef7b687650018cccfee2219bf00827f70.tar.gz sharkey-fc65190ef7b687650018cccfee2219bf00827f70.tar.bz2 sharkey-fc65190ef7b687650018cccfee2219bf00827f70.zip | |
feat: thread mute (#7930)
* feat: thread mute
* chore: fix comment
* fix test
* fix
* refactor
Diffstat (limited to 'test/utils.ts')
| -rw-r--r-- | test/utils.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/utils.ts b/test/utils.ts index 1a0c54463d..54bcf65ab1 100644 --- a/test/utils.ts +++ b/test/utils.ts @@ -1,5 +1,6 @@ import * as fs from 'fs'; import * as WebSocket from 'ws'; +import * as misskey from 'misskey-js'; import fetch from 'node-fetch'; const FormData = require('form-data'); import * as childProcess from 'child_process'; @@ -52,7 +53,7 @@ export const signup = async (params?: any): Promise<any> => { return res.body; }; -export const post = async (user: any, params?: any): Promise<any> => { +export const post = async (user: any, params?: misskey.Endpoints['notes/create']['req']): Promise<misskey.entities.Note> => { const q = Object.assign({ text: 'test' }, params); |