Skip to content

Commit 8e61333

Browse files
committed
Explicitely require prettycode to avoid snapshot change.
1 parent 9747ba9 commit 8e61333

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/testthat/test-helpers.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22

33
test_that("can construct and print vertical", {
4+
skip_if_not_installed("prettycode")
45
expect_snapshot({
56
construct_vertical(c("1 + 1", "nw"))
67
})

tests/testthat/test-public_api-3.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ test_that("Can display warning on unset styler cache", {
159159
})
160160

161161
test_that("No sensitive to decimal option", {
162+
skip_if_not_installed("prettycode")
162163
withr::local_options(OutDec = ",")
163164
expect_snapshot({
164165
style_text("1")

0 commit comments

Comments
 (0)