Skip to content

Commit

Permalink
Add test for missing package
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAxthelm committed Mar 20, 2024
1 parent ef590c6 commit 8825b76
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/testthat/test-get_package_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,10 @@ test_that("get_individual_package_info collects information for GitHub packages
remotesha_identical = "f839b7327c4cb422705b9f3b7c5ffc87555d98e2"
)
})

test_that("get_individual_package_info errors for package that doesn't exist", { #nolint: line_length_linter
expect_error(
get_individual_package_info("this_package_does_not_exist"),
)
})

0 comments on commit 8825b76

Please sign in to comment.