Skip to content

Commit f17a0e4

Browse files
committed
make sure a test touches overflow = keep
1 parent 2742ba8 commit f17a0e4

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

tests/testthat/test.geom_dotsinterval.R

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,11 @@ test_that("geom_dots binwidth can be specified in unit()s", {
213213

214214

215215
# these dots should be the same size (10% of facet height)
216-
expect_warning(
217-
vdiffr::expect_doppelganger("geom_dots with unit() binwidth",
218-
mtcars %>%
219-
ggplot(aes(y = mpg)) +
220-
geom_dots(binwidth = unit(0.1, "native")) +
221-
facet_grid(~ am, scales = "free")
222-
),
223-
class = "ggdist_dots_overflow_warning"
216+
vdiffr::expect_doppelganger("geom_dots with unit() binwidth",
217+
mtcars %>%
218+
ggplot(aes(y = mpg)) +
219+
geom_dots(binwidth = unit(0.1, "native"), overflow = "keep") +
220+
facet_grid(~ am, scales = "free")
224221
)
225222
})
226223

0 commit comments

Comments
 (0)