tests/testthat/test-api-fields.R

test_that("fields are well formatted", {
  expect_equal(api_fields("name"), "name")
  expect_equal(api_fields("name", organisationUnits = c("name","id")), "name,organisationUnits[name,id]")
})
INyabuto/dhis2r documentation built on June 14, 2021, 1:15 a.m.