                                   :state     running-status
                                   :name      "do-stuff"
                                   :startTime "2016-01-01T12:00:00.000Z"
+                                  :type :step
+                                  :steps []
                                   :endTime   nil}]}
                       (subject/build-details-from-pipeline foo-pipeline (foo-pipeline-build-state running-status) buildId)))))))
   (testing "that it returns build details of a finished step"

                           :steps     [{:stepId    "1-1"
                                        :state     "pending"
                                        :name      "do-stuff"
                                        :startTime nil
                                        :endTime   nil}

                                       {:stepId    "2-1"
                                        :state     "pending"
                                        :name      "do-stuff"
                                        :startTime nil
                                        :endTime   nil}]}]}


                                     {:stepId    "2-1"
                                      :state     :pending
                                      :name      "do-stuff"
                                      :type :step
                                      :steps []
                                      :startTime nil
                                      :endTime   nil}]}]} (subject/build-details-from-pipeline pipeline-with-substeps pipeline-with-substeps-state buildId)))))

