tests/testthat/test-get_draft.R

# Unit tests for get_draft function

# Test 1: Invalid draft ID returns nothing
test_that("Invalid draft ID returns nothing", {
  expect_equal(get_draft(-777), NULL)
})

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.