tests/testthat/test-api-key.R

test_that("Breaking for API Key", {

  expect_error(lp_api_key(api_key = ""))
  expect_silent(lp_api_key(api_key = "", error = FALSE))

})

Try the leanpubr package in your browser

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

leanpubr documentation built on May 1, 2019, 8:05 p.m.