tests/testthat/test-fct_getdata.R

test_that("getApi works", {
  expect_s3_class(
    suppressWarnings(postApi("stats/Stats_Static.asmx/off", list(Year = 2021, League = 83, Round = 53, Splits = "", IndOrTeam = "Individual", PlayerID = 0))),
    "data.frame"
  )
})
nelstevens/baseballdashboard documentation built on May 25, 2023, 11:40 p.m.