inst/apps/001-hello/tests/testthat/test-server.R

test_that("reactives update", {
  testServer(expr = {
    session$setInputs(bins = 5)
    expect_equal(bins(), seq(43, 96, length.out = 6))
  })
})
rstudio/shinycoreci documentation built on April 11, 2025, 3:17 p.m.