From fd3afacabfa7db74124b0ec6762edba7ed9927b4 Mon Sep 17 00:00:00 2001 From: sallto Date: Wed, 1 Mar 2023 22:13:15 +0100 Subject: [PATCH] test: add test for duplicate key error msg --- src/test/frontend/handler/common/config_edn_test.cljs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/frontend/handler/common/config_edn_test.cljs b/src/test/frontend/handler/common/config_edn_test.cljs index 7b732d30d8..97698d7402 100644 --- a/src/test/frontend/handler/common/config_edn_test.cljs +++ b/src/test/frontend/handler/common/config_edn_test.cljs @@ -42,4 +42,8 @@ (is (string/includes? (validation-config-error-for "{:start-of-week 7}" schema) "has the following errors") - (str "Invalid map for " file-type))))) + (str "Invalid map for " file-type)) + + (is (string/includes? + (validation-config-error-for "{:start-of-week 7\n:start-of-week 8}" schema) + "The key ':start-of-week' is assigned multiple times")))))