Skip to content

Commit

Permalink
test: add test for duplicate key error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
sallto authored and logseq-cldwalker committed Mar 1, 2023
1 parent bbf002c commit b8e7c0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/frontend/handler/common/config_edn_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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")))))

0 comments on commit b8e7c0e

Please sign in to comment.