context("test-officials")
test_that("officials works", {
q<-getOfficials()
expect_s3_class(q, 'nhl_api')
expect_true('officialType' %in% names(q$data))
q2<-getOfficials(active = TRUE)
expect_gt(nrow(q$data), nrow(q2$data))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.