Skip to content

Commit 60eb6de

Browse files
committed
Adjust different wording for missing argument
1 parent 0ca2b9e commit 60eb6de

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/testthat/test-with.R

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
test_that("modify_defaults produces error with missing or incorrect defaults", {
2-
lint_msg <- "`defaults` must be a named list"
3-
expect_error(modify_defaults(), lint_msg, fixed = TRUE)
4-
expect_error(modify_defaults("assignment_linter"), lint_msg, fixed = TRUE)
2+
expect_error(
3+
modify_defaults(),
4+
"Missing required argument `defaults` should be a named list",
5+
fixed = TRUE)
6+
expect_error(
7+
modify_defaults("assignment_linter"),
8+
"`defaults` must be a named list",
9+
fixed = TRUE)
510
})
611

712
test_that("linters_with_tags produces error with incorrect tags", {

0 commit comments

Comments
 (0)