tests/testthat/test-acquisition.R

test_that("player acquisition", {
  a <- player_acquire(leagueId = "42654852")
  expect_type(a, "list")
  expect_true("acquisitionType" %in% names(a[[1]]))
})

test_that("player acquisition errors on historu", {
  expect_error(
    object = player_acquire(
      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.