Skip to content

Commit

Permalink
cleanup: skips tests that depend on withr
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Jan 11, 2024
1 parent 32073cc commit 4f9f67c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-teal_slice.R
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ testthat::test_that("teal_slice dataname has to be a string when expr is specifi
testthat::test_that(
"teal_slice converts factors to characters for 'selected' and 'choices' parameters",
{
testthat::skip_if_not_installed("withr")
slices_path <- withr::local_file("slices.json")
tss <- teal_slices(
teal_slice(
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ test_that("check_simple_name behaves as expected", {
# get_teal_bs_theme ----
testthat::test_that("get_teal_bs_theme", {
testthat::expect_null(get_teal_bs_theme())
testthat::skip_if_not_installed("withr")
withr::with_options(list("teal.bs_theme" = bslib::bs_theme(version = "5")), {
testthat::expect_s3_class(get_teal_bs_theme(), "bs_theme")
})
Expand Down

0 comments on commit 4f9f67c

Please sign in to comment.