tests/testthat/test.nhl_conferences.R

context("nhl_divisions")

testthat::test_that(
  "nhl_divisions work even with empty data returned", {
    testthat::skip_if_offline(host = "nhl.com")
    testthat::skip_if(skipRemoteTests)

    testthat::expect_equal(
      nhl_conferences(1:2),
      conferences_done
    )
  }
)

Try the nhlapi package in your browser

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

nhlapi documentation built on Feb. 20, 2021, 9:06 a.m.