Fix broken test
This commit is contained in:
parent
66d887c55b
commit
2aed40e8b9
|
@ -39,7 +39,7 @@
|
||||||
:after (fn do-fx-after
|
:after (fn do-fx-after
|
||||||
[context]
|
[context]
|
||||||
(doseq [[effect-key effect-value] (:effects context)]
|
(doseq [[effect-key effect-value] (:effects context)]
|
||||||
(if-let [effect-fn (get-handler kind effect-key true)]
|
(if-let [effect-fn (get-handler kind effect-key false)]
|
||||||
(effect-fn effect-value)
|
(effect-fn effect-value)
|
||||||
(console :error "re-frame: no handler registered for effect: \"" effect-key "\". Ignoring."))))))
|
(console :error "re-frame: no handler registered for effect: \"" effect-key "\". Ignoring."))))))
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
(try
|
(try
|
||||||
(log/set-loggers! {:error log-fn})
|
(log/set-loggers! {:error log-fn})
|
||||||
(re-frame/dispatch-sync [::missing-handler-test])
|
(re-frame/dispatch-sync [::missing-handler-test])
|
||||||
(is (re-matches #"re-frame: no :fx handler registered for::fx-not-exist" (first @logs)))
|
(is (re-matches #"re-frame: no handler registered for effect: \":fx-not-exist\". Ignoring." (first @logs)))
|
||||||
(is (= (count @logs) 1))
|
(is (= (count @logs) 1))
|
||||||
(finally
|
(finally
|
||||||
(log/set-loggers! original-loggers)))))
|
(log/set-loggers! original-loggers)))))
|
||||||
|
|
Loading…
Reference in New Issue