tests/testthat/test_get_items_1_args.R

context('get_items - Arguments')

test_that("Check - Errors", {
  expect_error(get_items("z"),
               "There are no objects in your current environment matching the pattern 'z'")
  x <- 1
  expect_error(get_items("x"),
               "There are no items in your current environment matching the pattern 'x'")
})
derek-damron/budgetr documentation built on Aug. 11, 2020, 2:41 a.m.