tests/testthat/test-internals.R

context("test-internals.R")

test_that("internal fails when it should", {
  parameters <- list(format = "json-object", station = "*", fields = "all")
  response <- try(nrfa_api(webservice = "stations-info", parameters),
                  silent = TRUE)
  expect_equal(class(response), "try-error")
})
cvitolo/rnrfa documentation built on Feb. 16, 2021, 2:39 p.m.