diff --git a/tests/testthat/test-ui.R b/tests/testthat/test-ui.R index 9ed9d17..128c88a 100644 --- a/tests/testthat/test-ui.R +++ b/tests/testthat/test-ui.R @@ -1,6 +1,7 @@ test_that("cli_alert_success() works", { withr::local_options(emodnet.wfs.quiet = TRUE) expect_silent(cli_alert_success("hihihi")) + withr::local_options(emodnet.wfs.quiet = FALSE) expect_snapshot(cli_alert_success("hihihi")) }) @@ -8,6 +9,7 @@ test_that("cli_alert_success() works", { test_that("cli_alert_info() works", { withr::local_options(emodnet.wfs.quiet = TRUE) expect_silent(cli_alert_info("hihihi")) + withr::local_options(emodnet.wfs.quiet = FALSE) expect_snapshot(cli_alert_info("hihihi")) }) @@ -15,6 +17,7 @@ test_that("cli_alert_info() works", { test_that("cli_alert_danger() works", { withr::local_options(emodnet.wfs.quiet = TRUE) expect_silent(cli_alert_danger("hihihi")) + withr::local_options(emodnet.wfs.quiet = FALSE) expect_snapshot(cli_alert_danger("hihihi")) })