tests/testthat/test_search.R

test_that("returns_correct_structure_when_geo_accessible", {
  result <- searchFieldsGEO()

  expect_s3_class(result, "data.frame")
  expect_true(
    all(c("Name", "Description", "FullName") %in%
      colnames(result))
  )
})
seandavi/GEOquery documentation built on Oct. 29, 2024, 1:24 p.m.