test_that("live scoring returns 1 row per team", { l <- live_scoring(leagueId = "42654852", yetToPlay = TRUE, bonusWin = TRUE) expect_s3_class(l, "data.frame") expect_true("toPlay" %in% names(l)) expect_length(l, 8) expect_equal(nrow(l), 4) })