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 June 8, 2022, 10:21 a.m.