tests/testthat/test-drive_rm.R

# ---- tests ----
test_that("drive_rm() copes with no input", {
  expect_identical(drive_rm(), dribble())
})

test_that("drive_rm() copes when there are no matching files", {
  skip_if_no_token()
  skip_if_offline()

  expect_identical(drive_rm("non-existent-file-name"), dribble())
})
LucyMcGowan/googledrive documentation built on June 14, 2025, 11:15 a.m.