tests/testthat/test-api.R

test_that("Full endpoint url is build", {
  expect_equal(build_endpoint_url("test/endpoint"), "https://api.binotel.com/api/4.0/test/endpoint.json")
  expect_error(build_endpoint_url(123), "is not of class 'character'")
})

# TODO: add test for send_api_request()
DenUsenko/rbinotel documentation built on Oct. 17, 2020, 8:54 p.m.