Skip to content

Commit

Permalink
Test pr_find() handles repo with no pr (r-lib#990)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolepore committed Jan 29, 2020
1 parent 1957125 commit 4411390
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/testthat/test-pr.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
test_that("pr_find with a repo with no pr and a new pr outputs character()", {
expect_error_free(
pr_find("maurolepore", repo = "with-no-pr", pr_branch = "new")
)
})

test_that("pr_find with a repo with some pr and a new pr outputs character()", {
expect_error_free(
pr_find("maurolepore", repo = "with-some-pr", pr_branch = "new")
)
})

0 comments on commit 4411390

Please # to comment.