Skip to content

Commit

Permalink
change return type of failedApiCall to void
Browse files Browse the repository at this point in the history
ζˆ»γ‚Šε€€γŒγ©γ“γ«γ‚‚δ½Ώγ‚γ‚Œγ¦γ„γͺい
  • Loading branch information
KisaragiEffective committed Jun 20, 2024
1 parent a6db224 commit c884abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ export const successfulApiCall = async <E extends keyof misskey.Endpoints, P ext
return res.body;
};

export const failedApiCall = async <T, E extends keyof misskey.Endpoints, P extends misskey.Endpoints[E]['req']>(request: ApiRequest<E, P>, assertion: {
export const failedApiCall = async <E extends keyof misskey.Endpoints, P extends misskey.Endpoints[E]['req']>(request: ApiRequest<E, P>, assertion: {
status: number,
code: string,
id: string
}): Promise<T> => {
}): Promise<void> => {
const { endpoint, parameters, user } = request;
const { status, code, id } = assertion;
const res = await api(endpoint, parameters, user);
Expand Down

0 comments on commit c884abb

Please sign in to comment.