Skip to content

Commit

Permalink
Update test-ff_starters.R
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyelhabr committed Dec 7, 2023
1 parent 590cbbb commit e22a185
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/testthat/test-ff_starters.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,11 @@ test_that("ff_starters.espn finds the correct projected scores #397",{
n_projection_equal_actual <- sum(s$player_score == s$projected_score & s$player_score!=0)
expect_equal(n_projection_equal_actual, 0)
})

test_that("ff_starters.espn understands multi-week playoff formats #421",{
local_mock_api()
tony_conn <- espn_connect(season = 2022, league_id = 899513)
tony_starters <- ff_starters(tony_conn, weeks = 15:18)
expect_tibble(tony_starters, min.rows = 100)
})

0 comments on commit e22a185

Please sign in to comment.