test_that("cohort_selection_server", {
shiny::testServer(
cohort_selection_server,
{
session$setInputs("cohort_mode_choice" = "Cohort Selection")
expect_true(display_cohort_mode_choice())
expect_type(group_key_tbl(), "list")
cohort_object <- session$getReturned()()
expect_equal(class(cohort_object), c("Cohort", "R6"))
}
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.