Slink.Testing.Run (Slink v0.6.0)

Copy Markdown View Source

What a Slink.Testing.run/3 observed.

  • :result — the handler's raw return value (:ok, {:reply, …}, {:ack, …}, …). The reply, if any, was also performed and captured.
  • :calls — Web API calls, in order, as {method, params} tuples. The params' top-level keys are atoms (e.g. {"chat.postMessage", %{channel: "C123", …}}); nested maps keep whatever keys the handler built them with.
  • :responses — bodies posted to a response_url (slash replies, update_original/3), in order.