Skip to content

Commit ec2f3ec

Browse files
authored
1 parent 103c409 commit ec2f3ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ declare module "jest-fetch-mock" {
1212
(input?: string | Request, init?: RequestInit): Promise<Response>;
1313
mockResponse(body: string, init?: MockParams): Fetch;
1414
mockResponseOnce(body: string, init?: MockParams): Fetch;
15+
once(body: string, init?: MockParams): Fetch;
1516
mockResponses(...responses : Array<[string] | [string, MockParams]>): Fetch;
1617
mockReject(error?: Error): Fetch;
1718
mockRejectOnce(error?: Error): Fetch;

0 commit comments

Comments
 (0)