diff --git a/test/weller/handler_test.clj b/test/weller/handler_test.clj index fe0d210..a07477a 100644 --- a/test/weller/handler_test.clj +++ b/test/weller/handler_test.clj @@ -41,4 +41,12 @@ (component/start handler) (tu/create-then-update-then-delete-node node-name) (t/log! @result) + (component/stop handler))) + +(deftest simple-make-handler-test + (let [result (promise) + ;; note that handler is started automatically with this constructor + handler (handler/make-handler (filters/event? events/node-created) #(deliver result (get-node-name %)))] + (tu/create-then-update-then-delete-node node-name) + (t/log! @result) (component/stop handler))) \ No newline at end of file