Skip to content

Commit

Permalink
fixup! WIP - Add previous result in step functions, mocked functions
Browse files Browse the repository at this point in the history
  • Loading branch information
arichiardi committed Apr 13, 2020
1 parent 535de30 commit c8d7c91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fonda/step.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@
fn-or-keyword))

(defn step->record
[{:keys [tap inject] :as step}]
[{:keys [tap inject fn processor] :as step}]
(let [step
(cond
tap (map->Tap (update step :tap resolve-function))
(:fn step) (map->Processor (-> step
(update :fn resolve-function)
(assoc :is-anomaly-error? (or (:is-anomaly-error? step) (constantly true)))))
(or processor fn) (map->Processor (-> step
(update :fn resolve-function)
(assoc :is-anomaly-error? (or (:is-anomaly-error? step) (constantly true)))))
inject (map->Injector (update step :inject resolve-function)))]
(update step :name keyword)))

Expand Down

0 comments on commit c8d7c91

Please sign in to comment.