test_that("convert_html2cms", { res <- convert_html2cms( in_text = readLines(pkg_file("samples/from-html/sample.html"), warn = FALSE), full_html = FALSE, tag = "article", remove_script = FALSE) expected_result <- c( "

Hello, juicedown

", "

This is a big paragraph.

", "

Here's the small paragraph.

", "

Bye

" ) expect_equal(res, expected_result) })