Skip to content

Commit

Permalink
fix: update lint test
Browse files Browse the repository at this point in the history
  • Loading branch information
jcken95 committed May 22, 2024
1 parent c35a0c8 commit ea57e1a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/testthat/test-hook-lintr.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# .R ----

# success
run_test("lintr",
suffix = "-success.R",
Expand All @@ -12,3 +14,11 @@ run_test(
"lintr",
suffix = "-fail.R", cmd_args = "--warn_only", std_err = NULL
)

# .qmd ----

# success
run_test("lintr", suffix = "-success.qmd", std_err = NULL)

# failure
run_test("lintr", suffix = "-fail.qmd", std_err = "not lint free")

0 comments on commit ea57e1a

Please sign in to comment.