tests/testthat/test-check_module.R

test_that("check_module works as expected", {
  expect_error(
    check_module(
      list(inits = 1)
    )
  )
  expect_error(
    check_module(
      list(data = 1)
    )
  )
  expect_error(
    check_module(
      list(data = list())
    ),
    NA
  )
})
seabbs/epinowcast documentation built on Oct. 8, 2024, 8:35 p.m.