tests/testthat/test-zz_get.R

test_that("An error is thrown if we forget various params", {
            
            expect_error(zzlite::zz_get(), "Whoops, seems like you forgot to pass an id!")
            expect_error(zzlite::zz_get(id = 123), "Whoops, please let me know the extension of the file I should get.")

          }
        )

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.