Current section

Files

Jump to
accrue lib accrue invoice_renderer test.ex
Raw

lib/accrue/invoice_renderer/test.ex

defmodule Accrue.InvoiceRenderer.Test do
@moduledoc false
@behaviour Accrue.InvoiceRenderer
alias Accrue.Invoices.RenderContext
@impl true
def render(%RenderContext{} = context, opts) do
send(self(), {:invoice_pdf_rendered, context, opts})
{:ok, "%PDF-TEST"}
end
end