Skip to content

Commit

Permalink
fix test-object-package to hide new invalid ORCID warning on developm…
Browse files Browse the repository at this point in the history
…ent branch
  • Loading branch information
robchallen committed Oct 18, 2024
1 parent ddce5f3 commit d8e17f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/testthat/test-object-package.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
test_that("person turned into meaningful text", {
person_desc <- function(given = "H", family = "W", email = "[email protected]", role = "aut", comment = NULL) {
out <- person(given = given, family = family, email = email, role = role, comment = comment)
out <- suppressWarnings(
# newer version of utils::person throws warning if ORCID is invalid format
person(given = given, family = family, email = email, role = role, comment = comment)
)
author_desc(unclass(out)[[1]])
}

Expand Down

0 comments on commit d8e17f9

Please sign in to comment.