tests/testthat/test-get_meta.R

with_mock_api({
  test_that("Can get tables", {

    local_config()
    # Get tables object
    tables <- get_meta("tables")

    # Tests
    expect_s3_class(tables, "tbl_df")

    expect_equal(nrow(tables), 12)

    expect_equal(tables$parent_alias[1], "jobInfo")
  })
})

Try the bambooHR package in your browser

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

bambooHR documentation built on Oct. 25, 2023, 5:07 p.m.