AppRecorder.Test.Assertions (app_recorder v0.4.2) View Source
Link to this section Summary
Functions
Asserts an event is created
Asserts an outgoing_request is created
Asserts an request is created
Link to this section Functions
Specs
assert_event_recorded(map() | pos_integer() | nil) :: true
Asserts an event is created
It can be used as below:
Examples:
assert_event_recorded()
assert_event_recorded(%{resource_id: "id")
Specs
Specs
assert_outgoing_request_recorded(map()) :: true
Asserts an outgoing_request is created
It can be used as below:
Examples:
assert_outgoing_request_recorded()
assert_outgoing_request_recorded(%{destination: "destination")
Specs
assert_request_recorded(map() | pos_integer() | nil) :: true
Asserts an request is created
It can be used as below:
Examples:
assert_request_recorded()
assert_request_recorded(%{idempotency_key: "idempotency_key")