From 99817539bf69d794a7366d352770048d1ddd3417 Mon Sep 17 00:00:00 2001 From: Zelos Zhu Date: Tue, 22 Aug 2023 16:48:53 +0000 Subject: [PATCH] chore: #316 fix warning message and typos --- tests/testthat/test-warnings.R | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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:" ) })