tests/testthat/test_charts.R

library(usdc)

test_that("Current supply chart builds successfully", {
  expect_s3_class(chart_current_supply_usdc(), c("gg","ggplot"), exact = TRUE)
})


test_that("Historical supply chart builds successfully", {
  expect_s3_class(chart_historical_supply_usdc(), c("gg","ggplot"), exact = TRUE)
})

Try the usdc package in your browser

Any scripts or data that you put into this service are public.

usdc documentation built on June 21, 2021, 5:07 p.m.