library(httptest)
with_mock_api({
test_that("New chart can be created", {
new_chart <- dw_create_chart()
expect_s3_class(new_chart, "dw_chart")
expect_match(new_chart[["content"]][["id"]], "[a-zA-Z0-9_]{5}")
})
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.