Implemented middleware in a somewhat stateless fashion
This commit is contained in:
1 parent
0ccbb6bc1a
commit
f224665367
11 files changed
+124
-159
No files matched your search
@@ -2,3 +2,12 @@
|
||||
(:require [midje.sweet :refer :all]
|
||||
[skirmish.middleware.core :refer :all]))
|
||||
|
||||
(defn all? [xf]
|
||||
#(every? true? (sequence xf %)))
|
||||
|
||||
(facts "we should have a async/chan base middleware for developing."
|
||||
(fact "It should exchanges for each security in the config"
|
||||
(let [config {:securities [{:sec-id :molly} {:sec-id :pepper}]}
|
||||
exchanges (create-exchange-apis-for config)]
|
||||
(keys exchanges) => [:molly :pepper]
|
||||
(vals exchanges) => #(every? map? %))))
|
||||
Reference in new issue
Block a user