Update test

This commit is contained in:
Mitchell Hanberg 2020-11-04 20:21:32 -05:00
parent aa9a7dd578
commit 396978b36c

View file

@ -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()