tests/testthat/test-comments.R

with_mock_dir("t/comm", {
  test_that("felt_get_comments works", {
    skip_if_not(dir.exists('tests/testthat/t/comm/'), message = 'Test file not portable, test skipped.')
    actual <- felt_get_comments(map_id = 'Rockland-2024-Districts-TBI8sDkmQjuK2GX9CSiHiUA')
    expect_s3_class(actual, 'data.frame')
  })
})

Try the feltr package in your browser

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

feltr documentation built on Nov. 6, 2023, 1:06 a.m.