Skip to content

Commit

Permalink
test extra tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jrosell committed Sep 18, 2024
1 parent 2455d64 commit 1d72ee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-extra-tags.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ test_that('style_tpl_css_vars_replace works tpl_replace for two tpl variables',

test_that('style_from_css_tpl works', {
result <- withr::with_tempfile("temp_css_file", {
writeLines("me { background: var(--tpl-bgurl) center}", temp_css_file, sep = "\n")
writeLines("me { background: var(--tpl-bgurl) center}", temp_css_file, useBytes = TRUE)
as.character(style_from_css_tpl(temp_css_file, bgurl = "url(/icon.png)"))
})
expected <- "<style> me { background: url(/icon.png) center}\n </style>"
expect_contains(result, expected)
expect_equal(result, expected)
})

test_that('script_tpl_js_vars_replace works', {
Expand Down

0 comments on commit 1d72ee9

Please sign in to comment.