test_that("mermaid_get_managements returns a data frame of sites with the correct names", {
skip_if_offline()
skip_on_ci()
skip_on_cran()
output <- mermaid_get_managements(limit = 10)
expect_named(output, managements_columns)
expect_true(nrow(output) == 10)
expect_is(output, "tbl_df")
})
test_that("mermaid_get_managements fails without authentication", {
skip_if_offline()
skip_on_ci()
skip_on_cran()
expect_error(mermaid_get_managements(token = NULL), "Unauthorized")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.