Skip to content

Commit dd4839d

Browse files
committed
add a basic test
1 parent 690e985 commit dd4839d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/testthat/test-plotly-getfigure.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,10 @@ test_that("can add traces to a subplot figure", {
3737
expect_equivalent(length(plotly_build(fig)$data) + 1, length(l$data))
3838
})
3939

40+
test_that("posting a hidden plot returns a secret key", {
41+
skip_on_cran()
42+
res <- plotly_POST(plot_ly(), sharing = "hidden")
43+
key <- strsplit(res$url, "=")[[1]][2]
44+
expect_true(nchar(key) > 1)
45+
})
46+

0 commit comments

Comments
 (0)