Skip to content

Commit ab9e342

Browse files
committed
chore: lintr cleanup
1 parent 2c76a8a commit ab9e342

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

tests/testthat/test-qenv_eval_code.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ testthat::test_that("eval_code works with quoted code block", {
7777

7878
testthat::test_that("eval_code fails with unquoted expression", {
7979
b <- 3
80-
testthat::expect_error(eval_code(qenv(), a <- b), "unable to find an inherited method for function .eval_code. for signature")
80+
testthat::expect_error(
81+
eval_code(qenv(), a <- b),
82+
"unable to find an inherited method for function .eval_code. for signature"
83+
)
8184
})
8285

8386
testthat::test_that("an error when calling eval_code returns a qenv.error object which has message and trace", {

tests/testthat/test-qenv_get_var.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ testthat::test_that("get_var, `$` and `[[` only returns objects from qenv, not .
4444
withr::defer(rm("an_object", envir = .GlobalEnv))
4545
} else {
4646
old_object <- .GlobalEnv$an_object
47-
withr::defer(.GlobalEnv$an_object <- old_object)
47+
withr::defer(.GlobalEnv$an_object <- old_object) # nolint: object_name.
4848
}
49-
.GlobalEnv$an_object <- iris
49+
.GlobalEnv$an_object <- iris # nolint: object_name.
5050

5151
q <- qenv()
5252
testthat::expect_null(get_var(q, "iris"))

0 commit comments

Comments
 (0)