We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40511e2 commit df927eeCopy full SHA for df927ee
tests/testthat/test-ggplot-ylim.R
@@ -29,5 +29,7 @@ expect_traces <- function(gg, n.traces, name){
29
}
30
31
test_that("ylim is respected for 1 trace", {
32
- expect_traces(gg.ylim, 1, "one-trace")
+ info <- expect_traces(gg.ylim, 1, "one-trace")
33
+ expected.ylim <- c(0, max(df$total_bill))
34
+ expect_equal(info$kwargs$layout$yaxis$range, expected.ylim)
35
})
0 commit comments