Skip to content

Commit

Permalink
update test_that tidy_dir to handle dir name updates
Browse files Browse the repository at this point in the history
  • Loading branch information
AmiraBurns - USDA authored and AmiraBurns - USDA committed Mar 26, 2024
1 parent 192b7ac commit 61893a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testthat/test-course.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ test_that("tidy_unzip() deals with different directory names inside zip file", {
dest <- tidy_unzip(tmp)

found <- path_file(dest)
expected <- unzip(test_file("foo-rename.zip"), list=TRUE)$Name
foonames <- unzip(test_file("foo-rename.zip"), list=TRUE)$Name
expected <- (unique(path_dir(foonames)))
fs::dir_delete(dest)

expect_identical(found, expected)
Expand Down

0 comments on commit 61893a0

Please sign in to comment.