tests/testthat/test-rank_list.R

test_that("Can create rank_list", {
  z <- rank_list(
    text = "You can drag, drap and re-order these items:",
    labels = c("one", "two", "three", "four", "five"),
    input_id = "example_2"
  )

  expect_s3_class(z, "rank_list")
})
rstudio/sortable documentation built on April 5, 2024, 8:45 a.m.