Skip to content

Commit

Permalink
add test cases
Browse files Browse the repository at this point in the history
adding test cases to increase coverage
  • Loading branch information
donyunardi committed Sep 23, 2022
1 parent 74a27fd commit 997c3d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@ testthat::test_that("get_teal_bs_theme", {
withr::with_options(list("teal.bs_theme" = bslib::bs_theme(version = "5")), {
testthat::expect_s3_class(get_teal_bs_theme(), "bs_theme")
})
withr::with_options(list("teal.bs_theme" = 1), {
testthat::expect_warning(get_teal_bs_theme(), "the default shiny bootstrap is used")
})
withr::with_options(list("teal.bs_theme" = "bs_theme"), {
testthat::expect_warning(get_teal_bs_theme(), "the default shiny bootstrap is used")
})
})

0 comments on commit 997c3d1

Please sign in to comment.