Skip to content

Commit f461567

Browse files
committed
add a test for previous commit
1 parent 43093f2 commit f461567

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/testthat/test-ggplot-resize.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
context("ggplotly-resize")
2+
3+
test_that("ggplotly shouldn't populate layout.[width/height] by default", {
4+
lay <- ggplotly(qplot(1:10))$x$layout
5+
expect_null(lay$height)
6+
expect_null(lay$width)
7+
})
8+
9+
# TODO: test the functionality client side!

0 commit comments

Comments
 (0)