tests/testthat/test-list_supported_indexes.R

test_that("returns a tibble with the expected structure and content", {
  result <- list_supported_indexes()
  expect_s3_class(result, "tbl_df")
  expect_named(result, c("index", "url", "skip"))
  expect_snapshot(result)
})

Try the tidyfinance package in your browser

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

tidyfinance documentation built on July 3, 2026, 1:09 a.m.