Skip to content

Commit

Permalink
Merge pull request #730 from MichaelChirico/patch-4
Browse files Browse the repository at this point in the history
Skip test that requires rstudioapi
  • Loading branch information
gaborcsardi authored Oct 6, 2024
2 parents 524f7d7 + 2b12495 commit 18e2858
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-prettycode.R
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ test_that("code themes", {
expect_equal(code_theme_default()$reserved, "#C800A4")

withr::local_options(cli.code_theme_rstudio = NULL)
skip_if_not_installed("rstudioapi")
local_mocked_bindings(code_theme_default_rstudio = function() "foo")
expect_equal(code_theme_default(), "foo")
})
Expand Down

0 comments on commit 18e2858

Please sign in to comment.