tests/testthat/test-tidy_search_items.R

test_that("Tidy response search response is OK!", {
  skip_on_cran()
  resp <- query_search_api("arioch")
  res <- tidy_search_items(resp = resp)
  expect_true(is.data.table(res))
  expect_true(nrow(res) > 0)
  expect_true(ncol(res) > 0)
  expect_true(all(c("id", "guid") %in% names(res)))
})

Try the europeanaR package in your browser

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

europeanaR documentation built on May 17, 2022, 5:09 p.m.