Skip to content

Commit ea57e1a

Browse files
committed
fix: update lint test
1 parent c35a0c8 commit ea57e1a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/testthat/test-hook-lintr.R

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# .R ----
2+
13
# success
24
run_test("lintr",
35
suffix = "-success.R",
@@ -12,3 +14,11 @@ run_test(
1214
"lintr",
1315
suffix = "-fail.R", cmd_args = "--warn_only", std_err = NULL
1416
)
17+
18+
# .qmd ----
19+
20+
# success
21+
run_test("lintr", suffix = "-success.qmd", std_err = NULL)
22+
23+
# failure
24+
run_test("lintr", suffix = "-fail.qmd", std_err = "not lint free")

0 commit comments

Comments
 (0)