Skip to content

Commit 4c1e587

Browse files
committed
tweak test
1 parent 3e4a9ce commit 4c1e587

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/testthat/test-guides.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,12 @@ test_that("legends can be forced to display unrelated geoms", {
564564
limits = c("A", "B")
565565
)
566566

567-
b <- ggplot_build(p)
567+
# Should complain about useless scale, as it doesn't map anything
568+
expect_warning(
569+
b <- ggplot_build(p),
570+
"Ignoring scale"
571+
)
572+
568573
legend <- b$plot$guides$params[[1]]
569574

570575
expect_equal(

0 commit comments

Comments
 (0)