Skip to content

Commit 29541a6

Browse files
committed
Fix tests using test league ID and current age
1 parent 07ce63c commit 29541a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/testthat/test-api.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
test_that("empty API call returns fantasy league info", {
2-
x <- ffl_api()
2+
x <- ffl_api(leagueId = "42654852")
33
expect_type(x, "list")
44
expect_length(x, 9)
55
})

tests/testthat/test-history.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test_that("historical data can be returned", {
44
leagueHistory = TRUE
55
)
66
expect_type(h, "list")
7-
expect_length(h, 1)
7+
expect_length(h, ffl_year() - 2021)
88
expect_s3_class(h[[1]], "data.frame")
99
})
1010

0 commit comments

Comments
 (0)