tests/testthat/test-drilldown_scatterplot_server_functions.R

test_that("format_scatterplot_data", {

  result <- format_scatterplot_data(
    example_scatterplot_iris_data_4_features(),
    "Sepal.Length",
    "Sepal.Width"
  )
  expect_type(result, "list")
  expect_named(result, c("x", "y", "text"))
})
CRI-iAtlas/iatlas.modules documentation built on Aug. 8, 2024, 12:53 a.m.