Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Sep 17, 2024
1 parent 6fec117 commit 2083915
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions test/ex_doc/formatter/html_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -352,28 +352,28 @@ defmodule ExDoc.Formatter.HTMLTest do
end

test "redirects accept a list", %{tmp_dir: tmp_dir} = context do
generate_docs(
doc_config(context,
extras: ["test/fixtures/LICENSE"],
redirects: [
{"/old-license", "license"}
]
)
)
generate_docs(
doc_config(context,
extras: ["test/fixtures/LICENSE"],
redirects: [
{"/old-license", "license"}
]
)
)

assert File.read!(tmp_dir <> "/html/old-license.html") == """
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Elixir v1.0.1 — Documentation</title>
<meta http-equiv="refresh" content="0; url=license.html">
<meta name="generator" content="ExDoc v0.34.2">
</head>
<body></body>
</html>
"""
end
assert File.read!(tmp_dir <> "/html/old-license.html") == """
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Elixir v1.0.1 — Documentation</title>
<meta http-equiv="refresh" content="0; url=license.html">
<meta name="generator" content="ExDoc v0.34.2">
</head>
<body></body>
</html>
"""
end
end

describe "generates extras" do
Expand Down

0 comments on commit 2083915

Please sign in to comment.