Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test/ex_doc/formatter/html_test.exs
  • Loading branch information
josevalim authored Apr 26, 2025
commit cabe7c35964baf501e4ac9fc736737d070943e8f
6 changes: 3 additions & 3 deletions test/ex_doc/formatter/html_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,20 @@
assert LazyHTML.text(bar_content["h1"]) == "README bar"
end

test "extras defined as external urls", %{tmp_dir: tmp_dir} = context do

Check failure on line 115 in test/ex_doc/formatter/html_test.exs

View workflow job for this annotation

GitHub Actions / elixir (1.16, 26)

test extras defined as external urls (ExDoc.Formatter.HTMLTest)

Check failure on line 115 in test/ex_doc/formatter/html_test.exs

View workflow job for this annotation

GitHub Actions / elixir (1.15, 25)

test extras defined as external urls (ExDoc.Formatter.HTMLTest)

Check failure on line 115 in test/ex_doc/formatter/html_test.exs

View workflow job for this annotation

GitHub Actions / elixir (1.17, 27)

test extras defined as external urls (ExDoc.Formatter.HTMLTest)

Check failure on line 115 in test/ex_doc/formatter/html_test.exs

View workflow job for this annotation

GitHub Actions / elixir (1.18, 27, true)

test extras defined as external urls (ExDoc.Formatter.HTMLTest)
config =
doc_config(context,
extras: [
"README.md",
"readme.md",
"Elixir": [url: "https://elixir-lang.org"]
]
)

File.write!("#{tmp_dir}/README.md", "README")
File.write!("#{tmp_dir}/readme.md", "readme")

generate_docs(config)

content = File.read!(tmp_dir <> "/html/README.html")
content = File.read!(tmp_dir <> "/html/readme.html")

assert content =~ "https://elixir-lang.org"
end
Expand Down
Loading