Skip to content

Commit

Permalink
mix format
Browse files Browse the repository at this point in the history
  • Loading branch information
edgurgel committed Nov 19, 2024
1 parent 07774f2 commit f83f31a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions test/context_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ defmodule Solid.ContextTest do
vars: %{"variable" => "y"}
}

assert Context.get_in(context, ["x", {:reference, "variable"}], [:vars, :counter_vars]) == {:ok, 1}
assert Context.get_in(context, ["x", {:reference, "variable"}], [:vars, :counter_vars]) ==
{:ok, 1}
end

test "missing reference" do
Expand All @@ -68,7 +69,8 @@ defmodule Solid.ContextTest do
vars: %{"variable" => "q"}
}

assert Context.get_in(context, ["x", "y", {:reference, "missing"}], [:vars, :counter_vars]) == {:error, {:not_found, ["x", "y", "missing"]}}
assert Context.get_in(context, ["x", "y", {:reference, "missing"}], [:vars, :counter_vars]) ==
{:error, {:not_found, ["x", "y", "missing"]}}
end

test "list access" do
Expand Down
8 changes: 4 additions & 4 deletions test/integration/objects_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ defmodule Solid.Integration.ObjectsTest do
}

assert render(template, data) == """
<p>Yo! world</p>
"""
<p>Yo! world</p>
"""
end

test "field access through many variables" do
Expand All @@ -85,8 +85,8 @@ defmodule Solid.Integration.ObjectsTest do
}

assert render(template, data) == """
<p>Hey! world</p>
"""
<p>Hey! world</p>
"""
end

test "complex key rendering" do
Expand Down

0 comments on commit f83f31a

Please sign in to comment.