context("test-internals.R")
test_that("internal fails when it should", {
parameters <- list(format = "json-object", station = "*", fields = "all")
response <- try(nrfa_api(webservice = "stations-info", parameters),
silent = TRUE)
expect_equal(class(response), "try-error")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.