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')
  
})

Try the fastRhockey package in your browser

Any scripts or data that you put into this service are public.

fastRhockey documentation built on Oct. 26, 2022, 1:09 a.m.