View Source Inbox.Test (Inbox v0.1.2)

Stubs with default data to test the adapters.

Usage

test "POST /inbox", %{conn: conn} do
  data = Inbox.Test.postmark()
  conn = post(conn, ~p"/inbox", data)
  assert response(conn, 200) =~ "ok"
end

Summary

Functions

Stub for a Postmark inbound email.

Functions

postmark(data \\ %{})

@spec postmark(map()) :: map()

Stub for a Postmark inbound email.

See the source code for the map with default values, which can be overriden with the data argument.