UNPKG

umbraco-cypress-testhelpers

Version:

Test helpers for making Cypress tests for Umbraco solutions

16 lines (15 loc) 598 B
export declare class ResponseHelper { /** * This strips the first 6 characters of the response body * as it assumes it will **always** contain the junk json data `)]}',\n` * * It would be better to use jsonHelper.getBody() * as it checks for its presence of the data * * @param response The raw HTTP response from the server * @returns The JSON data in the body of the response as an object * @deprecated Please use jsonHelper.getBody instead * @see jsonHelper.getBody() */ static getResponseBody(response: any): any; }