testthat::test_that("Known bad HTML data comes back null", {
testthat::expect_null(
suppressWarnings(
parse_nhl_html_events(get_nhl_html_events('2008020259'))
))
testthat::expect_warning(
parse_nhl_html_events(get_nhl_html_events('2008020259'))
, regexp = "HTML Game Data Not Available"
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.