Skip to content

Commit

Permalink
Move hidden test to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eksperimental authored and wojtekmach committed Oct 6, 2020
1 parent 96cfd67 commit 326386f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/ex_doc/autolink_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ defmodule ExDoc.AutolinkTest do
~m"[`IEx.Helpers`](https://hexdocs.pm/iex/IEx.Helpers.html)"
end

test "hidden module" do
assert warn("Code.Typespec") =~
"documentation references module \"Code.Typespec\" but it is hidden"
end

test "erlang module" do
assert_unchanged(":array")
end
Expand Down Expand Up @@ -390,6 +385,9 @@ defmodule ExDoc.AutolinkTest do
assert warn("t:AutolinkTest.Foo.bad/0", file: "lib/foo.ex", id: "AutolinkTest.Foo.foo/0") =~
"documentation references \"t:AutolinkTest.Foo.bad/0\" but it is hidden or private\n"

assert warn("Code.Typespec") =~
"documentation references module \"Code.Typespec\" but it is hidden"

warn("String.upcase/9")

warn("c:GenServer.handle_call/9")
Expand Down

0 comments on commit 326386f

Please sign in to comment.