Skip to content

Commit b6ad0e1

Browse files
committed
test coord(ylim) translates to yaxis range
1 parent 57de369 commit b6ad0e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/testthat/test-cookbook-axes.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ test_that("scale_y(limits) hides points", {
4848

4949
bp.coord <- bp + coord_cartesian(ylim=c(5, 7.5))
5050
test_that("Using coord_cartesian zooms into the area", {
51-
expect_traces(bp.coord, 3, "coord-ylim")
51+
info <- expect_traces(bp.coord, 3, "coord-ylim")
52+
expect_equal(info$kwargs$layout$yaxis$range, c(5, 7.5))
5253
})
5354

5455
# Create some noisy exponentially-distributed data

0 commit comments

Comments
 (0)