Skip to content

Commit b8ce6a9

Browse files
authored
fix unit test. closes #3791 (#3792)
1 parent 7e6d125 commit b8ce6a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-theme.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ test_that("theme validation happens at build stage", {
252252

253253
# the error occurs when we try to render the plot
254254
p <- ggplot() + theme(text = 0)
255-
expect_error(print(p), "must be an `element_text`")
255+
expect_error(print(p), "must be an object of type `element_text`")
256256

257257
# without validation, the error occurs when the element is accessed
258258
p <- ggplot() + theme(text = 0, validate = FALSE)

0 commit comments

Comments
 (0)