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
|
||||
result =
|
||||
temple do
|
||||
case @foo.bar do
|
||||
case @foo do
|
||||
:baz ->
|
||||
weight_form(form: @form)
|
||||
some_component(form: @form)
|
||||
end
|
||||
end
|
||||
|
||||
expected =
|
||||
~S"""
|
||||
<%= case(@foo.bar) do %>
|
||||
<%= case(@foo) do %>
|
||||
<% :baz -> %>
|
||||
<%= weight_form(form: @form) %>
|
||||
<%= some_component(form: @form) %>
|
||||
<% end %>
|
||||
"""
|
||||
|> String.trim()
|
||||
|
|
Reference in a new issue