Skip to content

Commit 651034d

Browse files
committed
Use base pipe in a test case
1 parent 387580b commit 651034d

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)