Skip to content

Commit

Permalink
test cache dir creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jayhesselberth committed Jul 13, 2024
1 parent 0ab1d03 commit 03b0033
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-build-home-index.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ test_that("package repo verification", {
)
})

test_that("cache path is valid", {
cache_dir <- user_cache_dir("notarealpkg")
dir_create(cache_dir)
expect_true(is_dir(cache_dir))
dir_delete(cache_dir)
})

test_that("cran_unquote works", {
expect_equal(
Expand Down

0 comments on commit 03b0033

Please sign in to comment.