tests/testthat/test-icon_fun.R

test_that("fa_icon_repeat, is a fa icon", {
  check_suggests()
  skip_on_cran()

  svg_len <- fa_icon_repeat() %>%
    rvest::read_html() %>%
    rvest::html_elements("svg") %>%
    length()

  expect_equal(class(fa_icon_repeat()), c("html", "character"))
  expect_equal(svg_len, 3)


})

Try the gtExtras package in your browser

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

gtExtras documentation built on Sept. 16, 2023, 1:08 a.m.