tests/testthat/test-actor_preferences.R

with_mock_dir('t/a/preferences', {
  test_that('`bs_get_preferences()` works', {
    x <- bs_get_preferences(auth = auth)
    expect_s3_class(x, 'tbl_df')
  })
})

with_mock_dir('t/a/preferencesL', {
  test_that('`bs_get_preferences()` works', {
    x <- bs_get_preferences(auth = auth, clean = FALSE)
    expect_equal(class(x), 'list')
  })
})

Try the bskyr package in your browser

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

bskyr documentation built on June 8, 2025, 10:33 a.m.