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

33 lines
502 B
Elixir
Raw Normal View History

2019-07-02 02:48:51 +00:00
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
2019-04-15 01:44:39 +00:00
end