context("test-pf_list_breeds")
if(file.exists("token.txt")) {
token <- readLines("token.txt")
}
test_that("list breeds has input as expected", {
skip_if_not(exists("token"))
expect_error(pf_list_breeds(token, type = 123))
expect_error(pf_list_breeds(token, type = "unicorn"))
expect_true(is.character(pf_list_breeds(token, type = "dog")))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.