tests/testthat/test-activity.R

test_that("recent activity", {
  a <- recent_activity(
    leagueId = "42654852",
    seasonId = 2021,
    scoringPeriodId = 1
  )
  expect_s3_class(a, "data.frame")
  expect_length(a, 16)
  expect_type(a$items, "list")
})

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.