tests/testthat/test-check_url.R

test_that("check_url runs the checks", {

  # numbers return an error
  expect_error(output_check = check_url(123))

  # url not in database returns error
  expect_error(output_check = check_url("example.com"))

})

Try the newscatcheR package in your browser

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

newscatcheR documentation built on Sept. 20, 2023, 5:07 p.m.