     ))
 
 (deftest extract-trigger-data-test
- (testing "should return nil on empty"
-   (is (nil? (subject/extract-trigger-data nil nil))))
-
- (testing "should return trigger-id and convert step id"
-   (let [ui-config {}
-         input ['(1 4) {:trigger-id "abcdef"}]]
+  (testing "should return nil on empty"
+    (is (nil? (subject/extract-trigger-data nil nil))))
+
+  (testing "should return trigger-id and convert step id"
+    (let [ui-config {}
+          input ['(1 4) {:trigger-id "abcdef"}]]
       (is (= ["1-4" {:trigger {:url "/api/dynamic/abcdef"}}] (subject/extract-trigger-data ui-config input)))))
 
- (testing "should add path-prefix from ui-config to build trigger-data"
-   (let [ui-config {:path-prefix "release-pipeline"}
-         input ['(1 4) {:trigger-id "abcdef"}]]
-     (is (= ["1-4" {:trigger {:url "release-pipeline/api/dynamic/abcdef"}}] (subject/extract-trigger-data ui-config input))))))+  (testing "should add path-prefix from ui-config to build trigger-data"
+    (let [ui-config {:path-prefix "release-pipeline"}
+          input ['(1 4) {:trigger-id "abcdef"}]]
+      (is (= ["1-4" {:trigger {:url "release-pipeline/api/dynamic/abcdef"}}] (subject/extract-trigger-data ui-config input))))))
    (with-redefs [lambdacd.internal.pipeline-state/get-all (fn [_] {})]
      (let [pipeline {:pipeline-def pipeline-with-substeps}
            build-id "1"
            ws-ch    (async/chan 1)]
        (subject/websocket-connection-for-details pipeline build-id (wrap-websocket-channel ws-ch))
        (async/close! ws-ch)


            )
  (:import (org.joda.time DateTime DateTimeZone)))

(def joda-date-12 (DateTime. 2016 01 01 12 00 (DateTimeZone/UTC)))
(def joda-date-12-str "2016-01-01T12:00:00.000Z")

(def joda-date-14 (DateTime. 2016 01 01 14 00 (DateTimeZone/UTC)))
(def joda-date-14-str "2016-01-01T14:00:00.000Z")

(defn do-stuff [] {})

(def foo-pipeline
