tests/testthat/test-GitHubIssue9.R

# https://github.com/dmpe/urlshorteneR/issues/9

library(testthat)
library(httr)
library(jsonlite)
library(stringr)
library(urlshorteneR)

test_that("issue 9 is fixed", {
  expect_error(expect_message(bitly_shorten_link(long_url = ""), "INVALID_ARG_LONG_URL"))
})

Try the urlshorteneR package in your browser

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

urlshorteneR documentation built on Aug. 22, 2022, 9:08 a.m.