Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for rendering markdown in report previewer #156

Open
Tracked by #44
asbates opened this issue Oct 21, 2022 · 1 comment
Open
Tracked by #44

Add test for rendering markdown in report previewer #156

asbates opened this issue Oct 21, 2022 · 1 comment

Comments

@asbates
Copy link
Contributor

asbates commented Oct 21, 2022

Markdown rendering in report previewer was added in #155. However there were no tests added for this because it would require upgrading testthat. So if and when we upgrade to testthat 3rd edition, add a test to ensure markdown renders correctly.

testthat::test_that("render_text_block_preview - markdown renders to html fragment", {

  block <- TextBlock$new()

  block$set_content(
    "
  **bold text**
  - item 1
  - item 2
  "
  )

  testthat::expect_snapshot(render_text_block_preview(block$get_content()))
})
@chlebowa
Copy link
Contributor

chlebowa commented Aug 3, 2023

Acceptance criteria:
Add unit tests for rendering reports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants