We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37c4142 commit 9350750Copy full SHA for 9350750
tests/testthat/test-animate-highlight.R
@@ -1,12 +1,10 @@
1
context("highlighting and animation")
2
3
m <- crosstalk::SharedData$new(mtcars, ~vs)
4
+p <- plot_ly(m, x = ~wt, y = ~mpg) %>% add_markers()
5
6
test_that("SharedData produces key/set in plot_ly", {
- m <- crosstalk::SharedData$new(mtcars, ~vs)
7
- p <- plot_ly(m, x = ~wt, y = ~mpg) %>% add_markers()
8
tr <- plotly_build(p)$x$data[[1]]
9
-
10
expect_true(all(tr$key == m$key()))
11
expect_identical(tr$set, m$groupName())
12
expect_false(tr$`_isNestedKey` %||% FALSE)
0 commit comments