Skip to content

Commit

Permalink
test: vertical space
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Aug 23, 2024
1 parent f2df278 commit d20cc31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/testthat/test-ui.R
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
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"))
})

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"))
})

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"))
})

0 comments on commit d20cc31

Please sign in to comment.