tests/testthat/test-easy-Auth.R

library("sevenbridges")

context("Auth Class")

# check_token <- function() {
#   if (missing(token)) {
#     skip("token not available")
#   }
# }

# test_that("Test Auth constructor",{
#     expect_is(Auth("your_token"), "Auth")
#     expect_error(Auth(token))
# })

Try the sevenbridges package in your browser

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

sevenbridges documentation built on March 25, 2021, 6 p.m.