Skip to content

Commit 0ca0682

Browse files
committed
lint
1 parent 7e7934c commit 0ca0682

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tests/testthat/_snaps/hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
Output
3434
ERROR I'm failing
3535
ERROR Traceback:
36-
ERROR 2: stop("I'm failing") at helper.R #46
36+
ERROR 2: stop("I'm failing") at helper.R #45
3737
ERROR 1: function_that_fails()
3838

3939
# shiny input initialization is detected

tests/testthat/test-hooks.R

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ test_that("log_errors", {
1515
writeLines(eval_outside("log_errors()", "stop(42)"))
1616
writeLines(eval_outside("log_errors()", "foobar"))
1717
writeLines(eval_outside("log_errors()", 'f<-function(x) {42 * "foobar"}; f()'))
18-
writeLines(eval_outside(
19-
"log_errors(traceback = TRUE)",
20-
'source("helper.R", keep.source = TRUE)',
21-
"function_that_fails()"))
18+
writeLines(eval_outside("log_errors(traceback = TRUE)",
19+
'source("helper.R", keep.source = TRUE)',
20+
"function_that_fails()"))
2221
})
2322
})
2423

0 commit comments

Comments
 (0)