tests/testthat/test-oc_build_url.R

test_that("oc_build_url returns a string", {
  expect_type(
    oc_build_url(
      query_par = list(placename = "Haarlem"),
      endpoint = "json"
    ),
    "character"
  )
})
ropensci/opencage documentation built on Feb. 7, 2023, 8:48 p.m.