Skip to content

Commit df927ee

Browse files
committed
expect ylim
1 parent 40511e2 commit df927ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/testthat/test-ggplot-ylim.R

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,7 @@ expect_traces <- function(gg, n.traces, name){
2929
}
3030

3131
test_that("ylim is respected for 1 trace", {
32-
expect_traces(gg.ylim, 1, "one-trace")
32+
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)
3335
})

0 commit comments

Comments
 (0)