test_that("testing .index_GET() with (almost) default parameters", {
url <- paste0(
"https://service.azul.data.humancellatlas.org/index/projects",
"?size=5&sort=projectTitle&order=asc"
)
baseline_resp <- httr::GET(url)
test_resp <- .index_GET(size = 5)
expect_equal(test_resp$status_code, baseline_resp$status_code)
expect_equal(test_resp$content, httr::content(baseline_resp))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.