tests/testthat/test-friendbot.R

context("Test the friendbot service.")

test_that("The response returns a list.", {
  fb1 = friendbot(test_account_1) # from helper-config
  expect_type(fb1, "list")
  expect_equal(fb1$extras$result_codes$operations, "op_already_exists")
  expect_equal(fb1$extras$result_codes$transaction, "tx_failed")
  expect_equal(fb1$status, 400)
})

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.