Skip to content

Commit

Permalink
checks= is required here
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed Dec 5, 2023
1 parent d53644e commit 18cca03
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/testthat/test-trailing_blank_lines_linter.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ test_that("trailing_blank_lines_linter detects missing terminal newlines in Rmd/
expect_lint(
file = tmp3,
# We can't get 4 here because the line is NA-masked in get_source_expressions(), so no line length info exists.
list(lint_msg, line_number = 10L, column_number = 1L),
checks = list(lint_msg, line_number = 10L, column_number = 1L),
linters = linter
)

Expand All @@ -77,7 +77,7 @@ test_that("trailing_blank_lines_linter detects missing terminal newlines in Rmd/
expect_lint(
file = tmp4,
# We can't get 4 here because the line is NA-masked in get_source_expressions(), so no line length info exists.
list(lint_msg, line_number = 5L, column_number = 1L),
checks = list(lint_msg, line_number = 5L, column_number = 1L),
linters = linter
)

Expand All @@ -101,7 +101,7 @@ test_that("trailing_blank_lines_linter detects missing terminal newlines in Rmd/
expect_lint(
file = tmp5,
# We can't get 4 here because the line is NA-masked in get_source_expressions(), so no line length info exists.
list(lint_msg, line_number = 10L, column_number = 1L),
checks = list(lint_msg, line_number = 10L, column_number = 1L),
linters = linter
)
})
Expand All @@ -127,7 +127,7 @@ test_that("blank lines in knitr chunks produce lints", {

expect_lint(
file = tmp6,
list(lint_msg, line_number = 7L, column_number = 1L),
checks = list(lint_msg, line_number = 7L, column_number = 1L),
linters = linter
)

Expand All @@ -150,7 +150,7 @@ test_that("blank lines in knitr chunks produce lints", {

expect_lint(
file = tmp7,
list(
checks = list(
list(lint_msg, line_number = 7L, column_number = 1L),
list(lint_msg, line_number = 8L, column_number = 1L),
list(lint_msg, line_number = 9L, column_number = 1L)
Expand Down

0 comments on commit 18cca03

Please sign in to comment.