Skip to content

Commit 00a5c8d

Browse files
committed
expect range for scale_y
1 parent aca2492 commit 00a5c8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/testthat/test-cookbook-axes.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ test_that("ylim hides points", {
4444
bp.scale.hide <- bp + scale_y_continuous(limits=c(5, 7.5))
4545
test_that("scale_y(limits) hides points", {
4646
info <- expect_traces(bp.scale.hide, 3, "scale.hide")
47+
expect_equal(info$kwargs$layout$yaxis$range, c(5, 7.5))
4748
})
4849

4950
bp.coord <- bp + coord_cartesian(ylim=c(5, 7.5))

0 commit comments

Comments
 (0)