From 24db3d8b82e015d600f90046af424091bd1affd4 Mon Sep 17 00:00:00 2001 From: Julius Krumbiegel Date: Tue, 18 Jun 2024 17:40:44 +0200 Subject: [PATCH] test presence of preamble cell --- test/testsets/integrations/PlotlyJS.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/testsets/integrations/PlotlyJS.jl b/test/testsets/integrations/PlotlyJS.jl index 077ad73..6c9c272 100644 --- a/test/testsets/integrations/PlotlyJS.jl +++ b/test/testsets/integrations/PlotlyJS.jl @@ -6,6 +6,13 @@ if Sys.iswindows() else test_example(joinpath(@__DIR__, "../../examples/integrations/PlotlyJS.qmd")) do json cells = json["cells"] + preamble_cell = cells[5] + outputs = preamble_cell["outputs"] + @test length(outputs) == 1 + data = outputs[1]["data"] + @test keys(data) == Set(["text/html", "text/plain"]) + @test startswith(data["text/html"], "