Skip to content

Commit 2b2615f

Browse files
committed
fix test
1 parent 3c3917a commit 2b2615f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-ggplot-density2d.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ test_that("StatDensity2d with GeomPolygon translates to filled path(s)", {
5151
length(unique(unlist(lapply(polygons, "[[", "fillcolor")))) > 1
5252
)
5353
# ensure the legend/guide are placed correctly
54-
expect_true(L$layout$legend$y == 0.5)
54+
expect_true(L$layout$legend$y < 0.5)
5555
expect_true(L$layout$legend$yanchor == "top")
5656
expect_true(colorbar$marker$colorbar$y == 1)
5757
expect_true(colorbar$marker$colorbar$yanchor == "top")

0 commit comments

Comments
 (0)