Skip to content

Commit

Permalink
add unit test for download button
Browse files Browse the repository at this point in the history
  • Loading branch information
lukavdplas committed Nov 4, 2023
1 parent 24c79ac commit b7cd2cf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,17 @@ end

end

@testset "DownloadButton" begin
data = "test"
db1 = DownloadButton(data, "test.txt")
db2 = DownloadButton(html"<b>test</b>", "test.html")

hr(x) = repr(MIME"text/html"(), x)

hr(db1)
hr(db2)
end

function default(x)
new = AbstractPlutoDingetjes.Bonds.initial_value(x)
if Core.applicable(Base.get, x)
Expand Down

0 comments on commit b7cd2cf

Please sign in to comment.