Skip to content

Commit

Permalink
Fix test in Formatter.HTMLTest
Browse files Browse the repository at this point in the history
  • Loading branch information
eksperimental committed May 20, 2017
1 parent 06e5e44 commit 29399a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/ex_doc/formatter/html_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ defmodule ExDoc.Formatter.HTMLTest do
assert File.regular?("#{output_dir()}/another_dir/CompiledWithDocs.html")
assert File.regular?("#{output_dir()}/another_dir/RandomError.html")

assert "#{output_dir()}/another_dir/dist/app-*.css" |> Path.wildcard |> File.regular?
assert "#{output_dir()}/another_dir/dist/app-*.js" |> Path.wildcard |> File.regular?
for file <- Path.wildcard("#{output_dir()}/another_dir/dist/app-*.{js,css}") do
assert File.regular?(file)
end

content = File.read!("#{output_dir()}/another_dir/index.html")
assert content =~ ~r{<meta http-equiv="refresh" content="0; url=RandomError.html">}
Expand Down

0 comments on commit 29399a9

Please sign in to comment.