Skip to content

Commit 8136ed6

Browse files
committed
fix typo in tests
1 parent e46d268 commit 8136ed6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-ggplot-legend.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ test_that("many legend items", {
110110
size = 100, replace = TRUE))
111111
p_many_items <- ggplot(many_items, aes(cat2, fill=cat1)) +
112112
geom_bar(position="dodge")
113-
info <- expect_traces(p_long_items, 3, "many legend items")
113+
info <- expect_traces(p_many_items, 12, "many legend items")
114114
expect_equal(length(info$layout$annotations), 1)
115-
expected.names <- levels(long_items$cat2)
115+
expected.names <- levels(many_items$cat2)
116116
expect_identical(info$layout$annotations[[1]]$y > 0.5, TRUE)
117117
expect_identical(info$layout$annotations[[1]]$y -
118118
info$layout$legend$y > 0, TRUE)

0 commit comments

Comments
 (0)