Skip to content

Commit 3ba5f1f

Browse files
authored
Merge pull request #176 from rstudio/dev-purrr
Fix for dev purrr
2 parents 76612cd + a1fbb24 commit 3ba5f1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/testthat/test-deploy.R

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ test_that("dashboard_url_chr works with various length inputs", {
1414
})
1515

1616
test_that("dashboard_url_chr fails with invalid inputs", {
17+
class <- if (packageVersion("purrr") >= "0.9000") "vctrs_error_incompatible_size" else "purrr_error_bad_element_length"
18+
1719
expect_error(
1820
dashboard_url_chr(c("a", "b", "c"), "d", c("e", "f")),
19-
class = "purrr_error_bad_element_length"
21+
class = class
2022
)
2123
})
2224

0 commit comments

Comments
 (0)