mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
move ApiResponseError assertion function to separate file
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { expect } from "@jest/globals";
|
||||
import { ApiResponseError } from "../../src/loaders/ApiResponseError";
|
||||
|
||||
export async function assertAsyncCallbackThrowsApiResponseError(callback: () => Promise<any>) {
|
||||
await expect(callback).rejects.toThrow(ApiResponseError);
|
||||
}
|
||||
Reference in New Issue
Block a user