tests/testthat/test-footer.R

test_that("test default footer", {

  footer_check <- footer()

  expect_identical(
    footer_check$attribs$class,
    "govuk-footer "
  )

})

test_that("test default footer", {

  footer_check <- footer(TRUE)

  expect_identical(
    footer_check$attribs$class,
    "govuk-footer "
  )

})

Try the shinyGovstyle package in your browser

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

shinyGovstyle documentation built on March 18, 2022, 7:24 p.m.