context("nhl_draft_prospects")
testthat::test_that(
"nhl_draft_prospects has correct names", {
testthat::skip_if_offline(host = "nhl.com")
testthat::skip_if(skipRemoteTests)
res <- nhl_draft_prospects()
testthat::expect_true(all(
c(
"id", "fullName", "link", "firstName", "lastName",
"birthDate", "height", "weight", "shootsCatches",
"draftStatus", "birthCountry", "birthCity",
"birthStateProvince", "nationality", "nhlPlayerId"
) %in% names(res)
))
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.