tests/testthat/test-css_inline.R

test_that("Basic CSS inlining works", {

  css_inline("<style>div{color:red;}</style><div/>") %>%
    expect_equal("<div style=\"color: red;\"></div>")
})

Try the juicyjuice package in your browser

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

juicyjuice documentation built on Nov. 11, 2022, 1:05 a.m.