tests/testthat/test-function-path_to_file_href.R

test_that("path_to_file_href() works", {

  f <- kwb.nextcloud:::path_to_file_href

  expect_true(startsWith(f(leading_slash = TRUE), "/remote.php/dav/files"))
  expect_true(startsWith(f(leading_slash = FALSE), "remote.php/dav/files"))
})
KWB-R/kwb.nextcloud documentation built on Oct. 16, 2024, 11:18 p.m.