tests/testthat/test-skip_to_main.R

test_that("test skip_to_main_href", {
  expect_equal(skip_to_main()$attribs$href, "#main")
  expect_equal(skip_to_main("main_col")$attribs$href, "#main_col")
})

Try the shinyGovstyle package in your browser

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

shinyGovstyle documentation built on April 13, 2026, 5:06 p.m.