tests/testthat/test-func_trem_post.R

test_that("trem_post throws errors - no client", {

  expect_error(
    trem_post(path = "members",
              body = list(email = "example@website.com",
                          name = "Example Person",
                          role = "MEMBER"),
    ),
    regexp = "Tremendous API Client required.")

})

Try the tremendousr package in your browser

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

tremendousr documentation built on Sept. 30, 2021, 5:09 p.m.