chore: small test fixes

This commit is contained in:
Zach Daniel 2024-09-11 17:53:01 -04:00
parent fc48588bff
commit 3bbdece3fe
2 changed files with 3 additions and 3 deletions

View file

@ -130,7 +130,7 @@ defmodule Igniter.Code.ModuleTest do
""")
|> Igniter.create_new_file("test.txt", "Foo")
assert {_igniter, [Foo]} =
assert {_igniter, [Foo, Test, TestTest]} =
Igniter.Code.Module.find_all_matching_modules(igniter, fn _module, _zipper ->
true
end)

View file

@ -59,14 +59,14 @@ defmodule Igniter.Extensions.PhoenixTest do
end
""")
|> Igniter.create_new_file("lib/test_web/controllers/foo_json.ex", """
defmodule TestWeb.FooJson do
defmodule TestWeb.FooJSON do
def render(_), do: %{foo: "bar"}
end
""")
assert {:ok, "test_web/controllers/foo_json.ex"} =
Igniter.Extensions.Phoenix.proper_location(igniter, TestWeb.FooJson, [])
Igniter.Extensions.Phoenix.proper_location(igniter, TestWeb.FooJSON, [])
end
end
end