File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 (is (m/-interceptor? (mt/-interceptor inc nil nil nil nil )))
1212
1313 (are [?interceptor expected]
14- (= (m/map->Interceptor expected) (mt/-interceptor ?interceptor nil nil nil nil ))
14+ (= (m/-interceptor expected) (mt/-interceptor ?interceptor nil nil nil nil ))
1515
1616 inc {:enter inc}
1717 {:enter inc} {:enter inc}
2323 (let [?interceptor {:compile (constantly {:compile (constantly inc)})}]
2424 (testing " shallow compilation succeeds"
2525 (binding [mt/*max-compile-depth* 2 ]
26- (is (= (m/map->Interceptor {:enter inc}) (mt/-interceptor ?interceptor nil nil nil nil )))))
26+ (is (= (m/-interceptor {:enter inc}) (mt/-interceptor ?interceptor nil nil nil nil )))))
2727 (testing " too deep compilation fails"
2828 (binding [mt/*max-compile-depth* 1 ]
2929 (is (thrown? #?(:clj Exception, :cljs js/Error) (mt/-interceptor ?interceptor nil nil nil nil )))))))
You can’t perform that action at this time.
0 commit comments