Skip to content

Commit d85c69d

Browse files
authored
Use base pipe in a test case (#2232)
1 parent 39de8d1 commit d85c69d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-expect-condition.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ test_that("capture correct trace_env (#1994)", {
9393
expect_equal(status$n_failure, 1) # from expect_warning()
9494

9595
status <- capture_success_failure({
96-
stop("oops") %>% expect_error() %>% expect_warning()
96+
stop("oops") |> expect_error() |> expect_warning()
9797
})
9898
expect_equal(status$n_success, 1) # from expect_error()
9999
expect_equal(status$n_failure, 1) # from expect_warning()

0 commit comments

Comments
 (0)