tests/testthat.R

library(testthat)

test_that("Testing the URL validity", {
  expect_equal(httr::status_code(httr::GET("https://omabrowser.org/api")), 200 ) #checking that the server is live and accesible

})
klarakaleb/roma documentation built on April 21, 2024, 8:39 a.m.