tests/testthat/test-distribution.R

context("Test the distribution stats.")

test_that("200 response is returned.", {
  d = distribution()
  expect_type(d, "list")
  expect_named(d, c("updatedAt", "totalCoins", "availableCoins", "distributedCoins",
                    "programs"))
})

Try the xlm package in your browser

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

xlm documentation built on Oct. 23, 2018, 1:04 a.m.