Skip to content

Commit

Permalink
fix: update tests with updated assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhav committed Nov 20, 2023
1 parent 00b2be0 commit f2f6896
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-validate_has_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ testthat::test_that("validate_has_data returns message msg argument is set and c
testthat::test_that("validate_has_data returns throws error with non-character msg input", {
testthat::expect_error(
validate_has_data(data, 10, msg = 1),
"Please provide a character vector in msg argument of validate_has_data."
"Assertion on 'msg' failed: Must be of type 'string' \\(or 'NULL'\\), not 'double'"
)

testthat::expect_error(
validate_has_data(data, 10, msg = TRUE),
"Please provide a character vector in msg argument of validate_has_data."
"Assertion on 'msg' failed: Must be of type 'string' \\(or 'NULL'\\), not 'logical'."
)
})

0 comments on commit f2f6896

Please sign in to comment.