tests/testthat/test-messages.R

test_that("league messages", {
  m <- league_messages(leagueId = "42654852")
  expect_s3_class(m, "data.frame")
  expect_length(m, 7)
  expect_s3_class(m$date, "POSIXt")
})

test_that("league message errors", {
  expect_error(league_messages(leagueId = "42654852", leagueHistory = TRUE))
})

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.