context("Parsing function accuracy")
test_that("Error codes", {
resp <- httr:::response()
resp$status_code <- 201
expect_error(parse_response(resp))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.