test_that("get_national_cases returns the correct number of columns", {
result <- get_daily_national_cases()
expect_equal(length(result), 4)
})
test_that("get_provincial_cases returns the correct number of columns", {
result <- get_daily_provincial_cases()
expect_equal(length(result), 6)
})
test_that("the results are up-to-date",{
result_national <- get_daily_national_cases()
expect_gte(max(result_national$Datum),Sys.Date()-1)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.