tests/testthat/test-add_cta_button.R

test_that("the `add_cta_button()` function returns the expected output", {

  cta <-
    add_cta_button(
      url = "https://www.example.com",
      text = "An example website",
      align = "left"
    )

  expect_snapshot(cta)
})
rich-iannone/blastula documentation built on Feb. 27, 2024, 9:55 p.m.