Skip to content

Commit 7595556

Browse files
committed
fix failing tests
1 parent 6eb2264 commit 7595556

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/testthat/_snaps/theme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
---
3636

37-
Theme element `test` has `NULL` property without default: fill, colour, linewidth, and linetype.
37+
Theme element `test` has `NULL` property without default: fill, colour, linewidth, linetype, and linejoin.
3838

3939
---
4040

tests/testthat/test-theme.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ test_that("calculating theme element inheritance works", {
150150
e <- calc_element(
151151
"panel.background",
152152
theme(
153-
rect = element_rect(fill = "white", colour = "black", linewidth = 0.5, linetype = 1),
153+
rect = element_rect(fill = "white", colour = "black", linewidth = 0.5, linetype = 1, linejoin = "round"),
154154
panel.background = element_dummyrect(dummy = 5),
155155
complete = TRUE # need to prevent pulling in default theme
156156
)
@@ -159,7 +159,7 @@ test_that("calculating theme element inheritance works", {
159159
expect_identical(
160160
e,
161161
element_dummyrect(
162-
fill = "white", colour = "black", dummy = 5, linewidth = 0.5, linetype = 1,
162+
fill = "white", colour = "black", dummy = 5, linewidth = 0.5, linetype = 1, linejoin = "round",
163163
inherit.blank = TRUE # this is true because we're requesting a complete theme
164164
)
165165
)

0 commit comments

Comments
 (0)