Skip to content

Commit

Permalink
we don't expect complete themes anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Apr 29, 2024
1 parent 6185e82 commit df571c0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/testthat/test-theme.R
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,12 @@ test_that("complete and non-complete themes interact correctly with ggplot objec
expect_identical(pt, tt)

p <- ggplot_build(base + theme(text = element_text(colour = 'red', face = 'italic')))
expect_false(attr(p$plot$theme, "complete"))
expect_equal(p$plot$theme$text$colour, "red")
expect_equal(p$plot$theme$text$face, "italic")

p <- ggplot_build(base +
theme(text = element_text(colour = 'red')) +
theme(text = element_text(face = 'italic')))
expect_false(attr(p$plot$theme, "complete"))
expect_equal(p$plot$theme$text$colour, "red")
expect_equal(p$plot$theme$text$face, "italic")
})
Expand Down

0 comments on commit df571c0

Please sign in to comment.