tests/testthat/test-zz_post.R

test_that("An error is thrown if we forget various params", {
  
  expect_error(zzlite::zz_post(), "Whoops, please pass a file!")
  
  expect_error(zzlite::zz_post(file = avatar_emf), "Excuse me, but I need to know the extension type; please pass it :-)")

})

Try the zzlite package in your browser

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

zzlite documentation built on March 26, 2020, 7:36 p.m.