tests/testthat/test-get_espn_futures.R

test_that('get_espn_futures() returns tibble', {
  skip_if_offline()
  test <- get_espn_futures()
  expect_true(tibble::is_tibble(test))
})

test_that('get_espn_futures(1901) returns empty tibble', {
  skip_if_offline()
  test <- get_espn_futures(1901)
  expect_true(tibble::is_tibble(test) && nrow(test)==0)
})

Try the nhlscraper package in your browser

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

nhlscraper documentation built on Aug. 8, 2025, 6:28 p.m.