Skip to content

Commit cd70b45

Browse files
committed
remove pipes
1 parent b967cdd commit cd70b45

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/testthat/test-qenv_get_warnings.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ testthat::test_that("get_warnings accepts a qenv object with no warning and retu
2424
})
2525

2626
testthat::test_that("get_warnings accepts a qenv object with 2 warnings", {
27-
q <- qenv() %>%
28-
eval_code(quote(warning("This is a warning 1!"))) %>%
29-
eval_code(quote(warning("This is a warning 2!")))
27+
q <- qenv()
28+
q <- eval_code(q, quote(warning("This is a warning 1!")))
29+
q <- eval_code(q, quote(warning("This is a warning 2!")))
3030
testthat::expect_identical(
3131
get_warnings(q),
3232
paste0(
@@ -38,7 +38,7 @@ testthat::test_that("get_warnings accepts a qenv object with 2 warnings", {
3838
})
3939

4040
testthat::test_that("get_warnings accepts a qenv object with a single eval_code returning 2 warnings", {
41-
q <- qenv() %>% eval_code(quote({
41+
q <- eval_code(qenv(), quote({
4242
warning("This is a warning 1!")
4343
warning("This is a warning 2!")
4444
}))
@@ -63,9 +63,9 @@ testthat::test_that("get_warnings accepts a qenv object with a single eval_code
6363
})
6464

6565
testthat::test_that("get_warnings accepts a qenv object with 1 warning eval_code and 1 no warning eval_code", {
66-
q <- qenv() %>%
67-
eval_code(quote("x <- 1")) %>%
68-
eval_code(quote(warning("This is a warning 2!")))
66+
q <- qenv()
67+
q <- eval_code(q, quote("x <- 1"))
68+
q <- eval_code(q, quote(warning("This is a warning 2!")))
6969
testthat::expect_identical(
7070
get_warnings(q),
7171
paste0(

0 commit comments

Comments
 (0)