Class: MockCallHistoryLog
Access to an instance with :
const mockAgent = new MockAgent({ enableCallHistory: true })
mockAgent.getCallHistory()?.firstCall()class properties
body
mockAgent.getCallHistory()?.firstCall()?.bodyheaders
mockAgent.getCallHistory()?.firstCall()?.headersan objectmethod
mockAgent.getCallHistory()?.firstCall()?.methoda stringfullUrl
mockAgent.getCallHistory()?.firstCall()?.fullUrla string containing the protocol, origin, path, query and hashorigin
mockAgent.getCallHistory()?.firstCall()?.origina string containing the protocol and the hostheaders
mockAgent.getCallHistory()?.firstCall()?.headersan objectpath
mockAgent.getCallHistory()?.firstCall()?.patha string always starting with/searchParams
mockAgent.getCallHistory()?.firstCall()?.searchParamsan objectprotocol
mockAgent.getCallHistory()?.firstCall()?.protocola string (https:)host
mockAgent.getCallHistory()?.firstCall()?.hosta stringport
mockAgent.getCallHistory()?.firstCall()?.portan empty string or a string containing numbershash
mockAgent.getCallHistory()?.firstCall()?.hashan empty string or a string starting with#
class methods
toMap
Returns a Map instance
toString
Returns a string computed with any class property name and value pair
Last updated