Skip to content

Commit

Permalink
Improve tests to fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Mar 31, 2024
1 parent d3251f2 commit bcb5c78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-themes.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

start_app()
on.exit(stop_app(), add = TRUE)
start_app(.auto_close = TRUE)

test_that_cli("add/remove/list themes", {
withr::local_rng_version("3.3.0")
set.seed(24)

start_app(.auto_close = TRUE)

id <- default_app()$add_theme(list(".green" = list(color = "green")))
on.exit(default_app()$remove_theme(id), add = TRUE)
expect_true(id %in% names(default_app()$list_themes()))

expect_snapshot({
Expand Down

0 comments on commit bcb5c78

Please sign in to comment.