Skip to content

Commit

Permalink
fixes formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ddink committed Aug 23, 2024
1 parent 469e097 commit 70d9489
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/beacon/migrations/v001.ex
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ defmodule Beacon.Migrations.V001 do
check: "event = 'created' or event = 'published' or event = 'unpublished'"
)

create constraint(:beacon_page_events, :beacon_page_events_check_event, check: "event = 'created' or event = 'published' or event = 'unpublished'")
create constraint(:beacon_page_events, :beacon_page_events_check_event,
check: "event = 'created' or event = 'published' or event = 'unpublished'"
)

create_if_not_exists table(:beacon_page_snapshots, primary_key: false) do
add :id, :binary_id, primary_key: true
Expand Down
3 changes: 1 addition & 2 deletions test/beacon/lifecycle/template_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ defmodule Beacon.Lifecycle.TemplateTest do
Beacon.Loader.reload_page_module(page.site, page.id)
env = Beacon.Web.PageLive.make_env(:my_site)

assert %Phoenix.LiveView.Rendered{static: ["<main>\n <h1>my_site#home</h1>\n</main>"]} =
Lifecycle.Template.render_template(page, %{}, env)
assert %Phoenix.LiveView.Rendered{static: ["<main>\n <h1>my_site#home</h1>\n</main>"]} = Lifecycle.Template.render_template(page, %{}, env)
end
end

0 comments on commit 70d9489

Please sign in to comment.