View Source Notifiex.Provider.Mock (Notifiex v1.0.0)

Mock provider for Notifiex.

Link to this section Summary

Functions

Mock provider returns {:ok, true} if payload is {hello: "world"}, else returns an error response: {:error, :mock_error, false}.

Link to this section Functions

@spec call(map(), map()) :: {:ok, binary()} | {:error, {atom(), any()}}

Mock provider returns {:ok, true} if payload is {hello: "world"}, else returns an error response: {:error, :mock_error, false}.