Skip to content

Commit

Permalink
full test coverage for writingChecks
Browse files Browse the repository at this point in the history
  • Loading branch information
jasenfinch committed May 23, 2022
1 parent 6659122 commit 4c14775
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/testthat/test-writingChecks.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ test_that("writingChecks works", {
'######### Writing Checks #########'
)
})

test_that('writingChecks errors if non .Rmd file specified',{
expect_error(writingChecks('incorrect.R'))
})

test_that('writingChecks errors if file does not exist',{
expect_error(writingChecks('incorrect.Rmd'))
})

0 comments on commit 4c14775

Please sign in to comment.