test: add test for duplicate key error msg

pull/8738/head^2
sallto 2023-03-01 22:13:15 +01:00 committed by Gabriel Horner
parent 023c904bfc
commit fd3afacabf
1 changed files with 5 additions and 1 deletions

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