tests/testthat/test-resp_to_tbl.R

context("Converting API response to tibble")

# Response object fixture
source("www.givebriq.com/v0/organizations/your-organization/users.R")

test_that("Tibble is generated", {
    expect_is(resp_to_tbl(resp), "tbl_df")
})

Try the briqr package in your browser

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

briqr documentation built on May 16, 2019, 5:05 p.m.