Skip to content

Commit

Permalink
tweak cyclocomp test
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed Nov 17, 2023
1 parent d2998ed commit 66a528a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-cyclocomp_linter.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ test_that("returns the correct linting", {
expect_lint(complexity, lint_msg, cc_linter_2)
expect_lint(
complexity,
"should have cyclomatic complexity of less than 2, this has 10",
"should have cyclomatic complexity of less than 2, this has 6",
cc_linter_2
)
expect_lint(complexity, NULL, cyclocomp_linter(10L))
expect_lint(complexity, NULL, cyclocomp_linter(6L))
})

0 comments on commit 66a528a

Please sign in to comment.