tests/testthat/test_project.R

context("Projects")

test_that("Project requests handle missing values", {
  expect_error(bwr_projects_get(token = 234234), "Token object does not appear")
  expect_error(bwr_projects_get(token = c(1:10)), "Token object does not appear")
})

Try the brandwatchR package in your browser

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

brandwatchR documentation built on May 1, 2019, 10:24 p.m.