tests/testthat/test-js.R

test_that("active_js", {
  expect_s3_class(activate_js(), "shiny.tag")
})


test_that("invoke_js", {
  expect_error(invoke_js())
})

Try the golem package in your browser

Any scripts or data that you put into this service are public.

golem documentation built on June 7, 2023, 5:46 p.m.