Accrue.Test.Webhooks (accrue v0.3.0)

Copy Markdown View Source

Synthetic webhook helpers for host tests.

Events are persisted through Accrue.Webhook.Ingest and then dispatched through Accrue.Webhook.DefaultHandler so tests exercise the same reducer path as production webhooks.

Summary

Functions

Triggers a synthetic webhook event for the given subject.

Functions

trigger(type, subject)

@spec trigger(atom() | binary(), term()) ::
  {:ok, Accrue.Webhook.WebhookEvent.t()} | {:error, term()}

Triggers a synthetic webhook event for the given subject.