tests/testthat/test-getToken.R

#token <- getToken()
#
#test_that("getToken returns a non-empty token with correct credentials", {
#
#  expect_true(!is.null(token))
#  expect_type(token, "character")
#
#})
#
#
#
#
#test_that("getToken returns error if credentials are incorrect", {
#
#  expect_error(getToken(), "Check username and password")
#})
#

Try the vectorsurvR package in your browser

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

vectorsurvR documentation built on Aug. 22, 2025, 1:09 a.m.