Skip to content

Commit

Permalink
mo betta tests
Browse files Browse the repository at this point in the history
  • Loading branch information
novaugust committed Mar 16, 2024
1 parent 27e7030 commit 2f85ab8
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions test/style/module_directives/alias_lifting_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,34 @@ defmodule Styler.Style.ModuleDirectives.AliasLiftingTest do
end
"""

assert_style """
defmodule No do
@moduledoc false
alias A.B.C
assert_style(
"""
defmodule No do
@moduledoc false
defprotocol A.B.C do
:body
defimpl A.B.C, for: A.B.C do
:body
end
A.B.C.f()
A.B.C.f()
end
""",
"""
defmodule No do
@moduledoc false
C.f()
C.f()
end
"""
alias A.B.C
defimpl A.B.C, for: A.B.C do
:body
end
C.f()
C.f()
end
"""
)

assert_style """
defmodule No do
Expand Down

0 comments on commit 2f85ab8

Please sign in to comment.