Skip to content

Commit 4f12a43

Browse files
Use expectations to check for absence of exceptions (#1880)
Related to #1874
1 parent d2dbaa3 commit 4f12a43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Suggests:
4444
rlang,
4545
rmarkdown,
4646
rstudioapi (>= 0.2),
47-
testthat (>= 3.0.0),
47+
testthat (>= 3.1.5),
4848
tibble,
4949
tufte,
5050
withr (>= 2.5.0)

tests/testthat/test-get_source_expressions.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ patrick::with_parameters_test_that(
344344
{
345345
linter <- eval(call(linter))
346346
expression <- expressions[[expression_idx]]
347-
expect_warning(lints <- linter(expression), NA)
347+
expect_no_warning(lints <- linter(expression))
348348
expect_length(lints, 0L)
349349
},
350350
.test_name = param_df$.test_name,

0 commit comments

Comments
 (0)