tests/testthat/test-moduleExportGuide.R

test_that("guide UI returns a shiny tag object", {
  expect_equal(class(exportGuideUI("id")), "shiny.tag")
})

test_that("guide module server provides output", {
  shiny::testServer(exportGuideServer, args = list(registryName = "test"), {
    expect_equal(class(output$exportGuide), "list")
  })
})

test_that("guide test app returns an app object", {
  expect_equal(class(exportGuideApp()), "shiny.appobj")
})

Try the rapbase package in your browser

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

rapbase documentation built on March 7, 2023, 8 p.m.