Skip to content

Commit

Permalink
Fix test for AliasAs
Browse files Browse the repository at this point in the history
  • Loading branch information
rrrene committed Jan 14, 2024
1 parent f089e8d commit 1058b6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/credo/check/readability/alias_as_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule Credo.Check.Readability.AliasAsTest do
|> to_source_file
|> run_check(@described_check)
|> assert_issue(fn issue ->
assert issue.trigger == "App.Module1"
assert issue.trigger == "as:"
end)
end

Expand All @@ -50,9 +50,9 @@ defmodule Credo.Check.Readability.AliasAsTest do
|> run_check(@described_check)
|> assert_issues()

assert issue1.trigger == "App.Module1"
assert issue2.trigger == "App.Module3"
assert issue3.trigger == "App.Module4"
assert issue1.trigger == "as:"
assert issue2.trigger == "as:"
assert issue3.trigger == "as:"
end

test "it should report on alias __MODULE__, as: Foo" do
Expand Down

0 comments on commit 1058b6b

Please sign in to comment.