tests/testthat/test-newsapi_key.R

context("Validate functionality of the newsapi validation procedure")

test_that("Validate error", {
  skip_on_cran()
  expect_error(newsapi_key("somekey"), "Newsapi request failed. Please validate your apikey")
})
data-atelier/newsExtractoR documentation built on April 6, 2018, 2:54 a.m.