Skip to content

Commit

Permalink
Fix codefactor
Browse files Browse the repository at this point in the history
  • Loading branch information
plietar committed Sep 11, 2024
1 parent 492359e commit 1b50561
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/testthat/test-util.R
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,10 @@ describe("copy_files", {
it("can copy zero files", {
expect_no_error(copy_files(character(0), character(0)))
expect_no_error(copy_files(character(0), character(0), overwrite = TRUE))
expect_no_error(copy_files(character(0), character(0), make_writable = TRUE))
expect_no_error(copy_files(character(0), character(0),
make_writable = TRUE))
expect_no_error(copy_files(character(0), character(0),
overwrite = TRUE, make_writable = TRUE))
})


Expand All @@ -384,8 +387,8 @@ describe("copy_files", {
copy_files(src, dst[[3]], make_writable = TRUE)
copy_files(src, dst[[4]], make_writable = TRUE, overwrite = TRUE)

expect_true(all(fs::file_access(dst, mode="read")))
expect_equal(unname(fs::file_access(dst, mode="write")),
expect_true(all(fs::file_access(dst, mode = "read")))
expect_equal(unname(fs::file_access(dst, mode = "write")),
c(FALSE, FALSE, TRUE, TRUE))
})

Expand Down

0 comments on commit 1b50561

Please sign in to comment.