tests/testthat/test-plot_generate_nfl_player_data.R

# Unit tests for plot_generate_nfl_player_data function

# Test 1: Clean function call returns message informing user it was successful
test_that("good function call informs user", {
  expect_equal(plot_generate_nfl_player_data(),
               "NFL data generation successful.")
})

Try the sleeperapi package in your browser

Any scripts or data that you put into this service are public.

sleeperapi documentation built on April 3, 2025, 6:13 p.m.