Skip to content

Commit

Permalink
add simple test for list_datasets.R
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-hull committed Jul 3, 2024
1 parent 975cf62 commit afd94aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-list_datasets.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
test_that("returns more than 0 datasets", {
#select the first row of the tibble and get the
#number of rows. If no datasets were returned
#this will be 0
expect_equal(nrow(slice(list_datasets(), 1)), 1)
})

0 comments on commit afd94aa

Please sign in to comment.