tests/testthat/test-members.R

test_that("league members", {
  m <- league_members(leagueId = "42654852")
  expect_s3_class(m, "data.frame")
  expect_length(m, 3)
})

test_that("league members history with names", {
  m <- league_members(leagueId = "42654852", leagueHistory = TRUE)
  expect_type(m, "list")
  expect_named(m)
  expect_s3_class(m[[1]], "data.frame")
  expect_length(m[[1]], 3)
})

Try the fflr package in your browser

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

fflr documentation built on Sept. 14, 2023, 9:10 a.m.