Skip to content

Commit 231dce1

Browse files
Use skip_if() over custom approach (#458)
Co-authored-by: Jennifer (Jenny) Bryan <[email protected]>
1 parent 6bbc19a commit 231dce1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/testthat/test-drive_browse.R

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ test_that("drive_link() extracts links for files and Team Drives, alike", {
1717
})
1818

1919
test_that("drive_browse() passes links through", {
20-
if (interactive()) {
21-
skip("interactive() is TRUE")
22-
}
20+
skip_if(interactive())
2321
x <- readRDS(test_fixture("mix_of_files_and_teamdrives.rds"))
2422
expect_identical(drive_browse(x), drive_link(x))
2523
})

0 commit comments

Comments
 (0)