diff --git a/tests/testthat/test-warnings.R b/tests/testthat/test-warnings.R index 23df263e..a69d84fd 100644 --- a/tests/testthat/test-warnings.R +++ b/tests/testthat/test-warnings.R @@ -21,11 +21,12 @@ test_that("warn_if_vars_exist Test 1: warning if a variable already exists in th ) }) -# warn_if_invalud_dtc ---- +# warn_if_invalid_dtc ---- ## Test 2: Warning if vector contains unknown datetime format ---- -test_that("warn_if_invalud_dtc Test 2: Warning if vector contains unknown datetime format", { +test_that("warn_if_invalid_dtc Test 2: Warning if vector contains unknown datetime format", { expect_warning( - warn_if_invalid_dtc(dtc = "20210406T12:30:30") + warn_if_invalid_dtc(dtc = "20210406T12:30:30"), + "Dataset contains incorrect datetime format:" ) })