Skip to content

Commit

Permalink
(lineplot) Add spec for reference values.
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-ebs-ext committed Feb 17, 2025
1 parent 945f913 commit dd96d2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion inst/validation/specs.R
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ lineplot_module = list(
",
bookmark = "
The application shall support bookmarking. Clicks and brush are explicitely excluded.
",
reference_values = "
The chart optionally displays reference values as horizontal lines. Those are provided as separate columns of the visit-dependent dataset.
"
),

Expand Down Expand Up @@ -475,4 +478,4 @@ specs[["roc"]] <- roc_module
specs


# nolint end
# nolint end
2 changes: 1 addition & 1 deletion tests/testthat/test-line_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test_that("lineplot_chart produces a ggplot", {
expect_true("ggplot" %in% class(p))
})

test_that("lineplot_chart renders reference lines", {
test_that("lineplot_chart renders reference lines" |> vdoc[["add_spec"]](c(specs$lineplot_module$reference_values)), {
df <- data.frame(row.names = seq(1))

df[[CNT$VIS]] <- c("vis_1")
Expand Down

0 comments on commit dd96d2e

Please sign in to comment.