tests/testthat/test-nhl_game_content.R

test_that("NHL - Get NHL Game Content", {
  skip_on_cran()
  x <- nhl_game_content(game_id=2021020182)
  
  cols <- c("type",
             "id",
             "date",
             "title",
             "blurb",
             "description",
             "duration",
             "authFlow",
             "mediaPlaybackId",
             "mediaState",
             "keywords",
             "image",
             "playbacks")
  
  expect_equal(colnames(x), cols)
  expect_s3_class(x, 'data.frame')
  
})
benhowell71/fastRhockey documentation built on March 1, 2024, 9:23 a.m.