Skip to content

Commit

Permalink
version compat fix and test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tlienart committed May 20, 2019
1 parent 4ceb90e commit 3158ac8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
[compat]
DocStringExtensions = "^0.7.0"
Highlights = "^0.3.0"
JuDocTemplates = "^0.1.0"
JuDocTemplates = ">= 0.1.0"
LiveServer = "^0.1.0"
julia = "^1.0.0"
2 changes: 1 addition & 1 deletion test/converter/integration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,5 @@ end

@testset "HTML escape" begin # see #151
st = read(joinpath(D, "151.md"), String)
st |> conv == "<p>aaa \n<pre><code class=\"julia\">\n\"\"\"\n A\n\nB\n\n# C\n```jldoctest\nD\n```\n\"\"\"\nfunction bar(x, y)\nE\nend\n</code></pre>\n bbb</p>\n"
@test st |> conv == "<p>aaa \n<pre><code class=\"julia\">\n\"\"\"\n A\n\nB\n\n# C\n```jldoctest\nD\n```\n\"\"\"\nfunction bar(x, y)\nE\nend\n</code></pre>\n bbb</p>\n"
end
2 changes: 1 addition & 1 deletion test/converter/lx_input.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ J.JD_PATHS[:scripts] = joinpath(dirname(dirname(pathof(JuDoc))), "test", "_dummi

@test occursin("Some string <pre><code class=\"language-julia\">$(read(joinpath(J.JD_PATHS[:scripts], "s1.jl"), String))</code></pre>", h)
@test occursin("Then maybe <pre><code>$(read(joinpath(J.JD_PATHS[:scripts], "output", "s1.txt"), String))</code></pre>", h)
@test occursin("Finally img: <img src=\"assets/scripts/output/s1a.png\" id=\"judoc-out-plot\"/> done.", h)
@test occursin("Finally img: <img src=\"/assets/scripts/output/s1a.png\" id=\"judoc-out-plot\"/> done.", h)
end

0 comments on commit 3158ac8

Please sign in to comment.