This repository has been archived on 2023-08-07. You can view files and clone it, but cannot push or open issues or pull requests.
temple/test/temple_test.exs

32 lines
502 B
Elixir

defmodule TempleTest do
use ExUnit.Case, async: true
import Temple
describe "temple/1" do
test "works" do
assigns = %{name: "mitch"}
result =
temple do
div class: "hello" do
div class: "hi" do
@name
end
end
end
# heex
expected = """
<div class="hello">
<div class="hi">
mitch
</div>
</div>
"""
assert expected == result
end
end
end