Skip to content

Commit 60c5364

Browse files
committed
one last test fix
1 parent 00a2a13 commit 60c5364

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/testthat/test-animate-highlight.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ test_that("animation button can be customized", {
373373
test_that("sf works with crosstalk", {
374374
skip_if_not_installed("sf")
375375

376-
nc <- sf::st_read(system.file("shape/nc.shp", package = "sf"))
376+
nc <- sf::st_read(system.file("shape/nc.shp", package = "sf"), quiet = TRUE)
377377
# shared data will make the polygons "query-able"
378378
ncsd <- crosstalk::SharedData$new(nc)
379379
p <- ggplot(ncsd) +
@@ -382,6 +382,7 @@ test_that("sf works with crosstalk", {
382382
gg <- ggplotly(p, tooltip = "text")
383383
d <- gg$x$data
384384
for (i in seq_along(d)) {
385+
if (!isTRUE(d[["_isGraticule"]])) next
385386
expect_false(is.null(d[[i]]$key))
386387
expect_false(is.null(d[[i]]$set))
387388
}

0 commit comments

Comments
 (0)