Update test
This commit is contained in:
parent
aa9a7dd578
commit
396978b36c
1 changed files with 4 additions and 4 deletions
|
@ -154,17 +154,17 @@ defmodule TempleTest do
|
||||||
test "renders a case expression as eex" do
|
test "renders a case expression as eex" do
|
||||||
result =
|
result =
|
||||||
temple do
|
temple do
|
||||||
case @foo.bar do
|
case @foo do
|
||||||
:baz ->
|
:baz ->
|
||||||
weight_form(form: @form)
|
some_component(form: @form)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
expected =
|
expected =
|
||||||
~S"""
|
~S"""
|
||||||
<%= case(@foo.bar) do %>
|
<%= case(@foo) do %>
|
||||||
<% :baz -> %>
|
<% :baz -> %>
|
||||||
<%= weight_form(form: @form) %>
|
<%= some_component(form: @form) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
"""
|
"""
|
||||||
|> String.trim()
|
|> String.trim()
|
||||||
|
|
Reference in a new issue