Skip to content

Commit

Permalink
Add symbol injection test
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel- committed Jan 24, 2024
1 parent 39dbb2b commit 9d9329c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-help.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ test_that("shim_help works with complex NULL `package = ` argument (#266)", {
class(pkgload:::shim_help(list, package = (NULL))),
"help_files_with_topic"
)

package <- "base"
expect_equal(
class(pkgload:::shim_help(list, package = (package))),
"help_files_with_topic"
)
})

test_that("shim_question behaves the same as utils::? for non-devtools-loaded packages", {
Expand Down

0 comments on commit 9d9329c

Please sign in to comment.