tests/testthat/test-get_espn_coach_career.R

test_that('get_espn_coach_career() returns non-empty list', {
  skip_if_offline()
  test <- get_espn_coach_career()
  expect_true(is.list(test) && length(test)>0)
})

test_that('get_espn_coach_career(0) returns empty list', {
  skip_if_offline()
  test <- get_espn_coach_career(0)
  expect_true(is.list(test) && length(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.