Skip to content

Commit

Permalink
get_stats() when empty with json returns a different format than othe…
Browse files Browse the repository at this point in the history
…r, skipping a test
  • Loading branch information
giorgiacek committed Nov 27, 2024
1 parent 98676be commit a819439
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-get_stats.R
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ test_that("get_stats() returns a tibble with named columns for empty response (f
# json (does not return an empty response data frame)
# GC: this test returns a warning now because json returns a completely
# empty tibble (no variables), is this correct?
#res2 <- get_stats("AGO", 2005, format = "json") # empty response
#expect_equal(dim(res2)[2], 0)
#expect_equal(length(names(res2)), 0)
# res2 <- get_stats("AGO", 2005, format = "json") # empty response
# expect_equal(dim(res2)[2], 0)
# expect_equal(length(names(res2)), 0)

})

Expand Down

0 comments on commit a819439

Please sign in to comment.