test: add test for duplicate key error msg

This commit is contained in:
sallto
2023-03-01 22:13:15 +01:00
committed by Gabriel Horner
parent 023c904bfc
commit fd3afacabf

View File

@@ -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")))))