Skip to content

Commit 9350750

Browse files
committed
fix scoping in test
1 parent 37c4142 commit 9350750

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/testthat/test-animate-highlight.R

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
context("highlighting and animation")
22

33
m <- crosstalk::SharedData$new(mtcars, ~vs)
4+
p <- plot_ly(m, x = ~wt, y = ~mpg) %>% add_markers()
45

56
test_that("SharedData produces key/set in plot_ly", {
6-
m <- crosstalk::SharedData$new(mtcars, ~vs)
7-
p <- plot_ly(m, x = ~wt, y = ~mpg) %>% add_markers()
87
tr <- plotly_build(p)$x$data[[1]]
9-
108
expect_true(all(tr$key == m$key()))
119
expect_identical(tr$set, m$groupName())
1210
expect_false(tr$`_isNestedKey` %||% FALSE)

0 commit comments

Comments
 (0)