@solid-data-modules/rdflib-utils
Version:
Utility functions for the development of Solid Data Modules for RDFLib.js
15 lines (14 loc) • 652 B
TypeScript
/// <reference types="jest" />
/**
* Expect that an PATCH request has been performed
* @param authenticatedFetch - A mocked fetch function
* @param url - The expected URL to PATCH
* @param expectedBody - The expected request body
*/
export declare function expectPatchRequest(authenticatedFetch: jest.Mock, url: string, expectedBody: string): void;
/**
* Expect that an PUT request has been performed to create an empty turtle file
* @param authenticatedFetch - A mocked fetch function
* @param url - The expected URL of the file to create
*/
export declare function expectPutEmptyTurtleFile(authenticatedFetch: jest.Mock, url: string): void;