tests/testthat/test-nhl_conferences.R

test_that("NHL - Get NHL conferences", {
  skip_on_cran()
  x <- nhl_conferences()

  cols <- c(
    "conference_id", "name", "link", "abbreviation", "short_name", "active"
  )
  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.