tests/testthat/test-nhl_divisions_info.R

test_that("NHL - Get NHL divisions info", {
  skip_on_cran()
  x <- nhl_divisions_info(division_id = 17)
  
  cols <- c(
    "division_id",
    "name",
    "name_short",
    "link",
    "abbreviation",
    "active",
    "conference_id",
    "conference_name",
    "conference_link"
  )
  expect_equal(colnames(x), cols)
  expect_s3_class(x, 'data.frame')

})
benhowell71/fastRhockey documentation built on March 1, 2024, 9:23 a.m.