@@ -130,21 +130,18 @@ test_that("styler can style Rmd file", {
130
130
}))
131
131
132
132
capture_output(expect_warning(
133
- styled <- style_file(testthat_file(" public-api" , " xyzfile_rmd" ,
134
- " random2.Rmd" ), strict = FALSE )
133
+ styled <- style_file(testthat_file(" public-api" , " xyzfile_rmd" , " random2.Rmd" ), strict = FALSE )
135
134
))
136
135
expect_false(styled $ changed )
137
136
})
138
137
139
138
test_that(" styler handles malformed Rmd file and invalid R code in chunk" , {
140
139
capture_output(expect_warning(
141
- style_file(testthat_file(" public-api" , " xyzfile_rmd" , " random3.Rmd" ), strict
142
- = FALSE )
140
+ style_file(testthat_file(" public-api" , " xyzfile_rmd" , " random3.Rmd" ), strict = FALSE )
143
141
))
144
142
145
143
capture_output(expect_warning(
146
- style_file(testthat_file(" public-api" , " xyzfile_rmd" , " random4.Rmd" ), strict
147
- = FALSE )
144
+ style_file(testthat_file(" public-api" , " xyzfile_rmd" , " random4.Rmd" ), strict = FALSE )
148
145
))
149
146
})
150
147
@@ -290,21 +287,18 @@ test_that("styler can style Rnw file", {
290
287
}))
291
288
292
289
capture_output(expect_warning(
293
- styled <- style_file(testthat_file(" public-api" , " xyzfile-rnw" ,
294
- " random2.Rnw" ), strict = FALSE )
290
+ styled <- style_file(testthat_file(" public-api" , " xyzfile-rnw" , " random2.Rnw" ), strict = FALSE )
295
291
))
296
292
expect_false(styled $ changed )
297
293
})
298
294
299
295
test_that(" styler handles malformed Rnw file and invalid R code in chunk" , {
300
296
capture_output(expect_warning(
301
- style_file(testthat_file(" public-api" , " xyzfile-rnw" , " random3.Rnw" ), strict
302
- = FALSE )
297
+ style_file(testthat_file(" public-api" , " xyzfile-rnw" , " random3.Rnw" ), strict = FALSE )
303
298
))
304
299
305
300
capture_output(expect_warning(
306
- style_file(testthat_file(" public-api" , " xyzfile-rnw" , " random4.Rnw" ), strict
307
- = FALSE )
301
+ style_file(testthat_file(" public-api" , " xyzfile-rnw" , " random4.Rnw" ), strict = FALSE )
308
302
))
309
303
})
310
304
0 commit comments