tests/testthat/test-get_downloads_stats.R

test_that("get_download_stats works", {

  testthat::expect_is(get_download_stats(), "data.frame")
  testthat::expect_is(get_download_stats('fslr'), "integer")
  testthat::expect_is(get_download_stats('fslr', verbose=TRUE), "data.frame")
  testthat::expect_is(get_download_stats(verbose = TRUE), "data.frame")
})
adigherman/neurocStats documentation built on May 13, 2021, 7:50 a.m.