umbraco-cypress-testhelpers
Version:
Test helpers for making Cypress tests for Umbraco solutions
12 lines (11 loc) • 393 B
TypeScript
export declare class JsonHelper {
/**
* Expects the HTTP body response to be JSON
* This will remove the `)]}',\n` if present
* and return the correct JSON data as an object
*
* @param response The raw HTTP response from the server
* @returns The JSON data in the body of the response as an object
*/
static getBody(response: any): any;
}