tests/testthat/test-uis_get_versions.R

test_that("Get all versions", {
  skip_if_offline()

  result <- uis_get_versions()

  expect_s3_class(result, "data.frame")
  expect_true(all(
    c("version", "publication_date", "description", "theme") %in%
      colnames(result)
  ))
})

test_that("Get default version", {
  skip_if_offline()

  result <- uis_get_versions(default_only = TRUE)

  expect_s3_class(result, "data.frame")
  expect_true(all(
    c("version", "publication_date", "description", "theme") %in%
      colnames(result)
  ))
})

Try the uisapi package in your browser

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

uisapi documentation built on April 3, 2025, 10:02 p.m.