tests/testthat/test-button.R

context("button input")

test_that("argument id must be character or null", {
  expect_missing_id_error(buttonInput())
  expect_error(buttonInput(id = 1, label = "LABEL"))

  expect_silent(buttonInput(id = "ID", label = "LABEL"))
})

test_that("has dependencies", {
  expect_dependencies(buttonInput(id = "ID", label = "LABEL"))
})
nteetor/dull documentation built on June 10, 2022, 11:30 a.m.