Skip to content

Commit

Permalink
Added test for warning_no_rows
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbielby committed Jan 28, 2025
1 parent f9af409 commit 19341f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-warning_no_rows.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
test_that("Get publications returns warning when no rows returned", {
expect_warning(
x <- get_publications(search = "dashboardy"),
"Your query returned zero rows.")
})

0 comments on commit 19341f9

Please sign in to comment.