We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3115d9a commit 9633cc9Copy full SHA for 9633cc9
test/com/vadelabs/toon/encode/normalize_test.cljc
@@ -277,11 +277,11 @@
277
(testing "Exceeding max depth throws exception"
278
(let [deeply-nested (reduce (fn [acc _] {:nested acc})
279
{}
280
- (range 1005))]
+ (range 55))]
281
(is (thrown-with-msg? #?(:clj clojure.lang.ExceptionInfo
282
:cljs js/Error)
283
#"Maximum nesting depth exceeded"
284
- (norm/normalize-value deeply-nested)))))
+ (norm/normalize-value deeply-nested 0 50)))))
285
286
(testing "Custom max-depth parameter"
287
(let [nested {:a {:b {:c {:d {:e 1}}}}}]
0 commit comments