tests/testthat/test-espn_wnba_teams.R

cols <- c(
  "team_id",
  "team",
  "mascot",
  "display_name",
  "short_name",
  "abbreviation",
  "color",
  "alternate_color",
  "logo",
  "logo_dark"
)

test_that("ESPN - WNBA Teams", {
  skip_on_cran()
  x <- espn_wnba_teams()
  expect_equal(colnames(x), cols)
  expect_s3_class(x, "data.frame")
})
 

Try the wehoop package in your browser

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

wehoop documentation built on Nov. 26, 2023, 1:08 a.m.