         expectPromise(resolvedPromise, onFulfilled: { str in
             XCTAssert(str == resolveWith, "")
         })
-
+        
         expectPromise(resolvedPromise, onFulfilled: { str in
             XCTAssert(str == resolveWith, "Double handler failed")
         })
-
+        
         waitForExpectationsWithTimeout(1, handler: nil)
     }
-
-
+    
 }


        let promiseA = Deferred<Int>()

        let chained = promiseA.then({ i -> Deferred<Int> in
            return Deferred<Int>(value: i + 1)
        }).then({ i -> Int in
            return i + 1
        })


        waitForExpectationsWithTimeout(1, handler: nil)
    }

    func testChainImmediateResolve() {

        let promiseA = Deferred<Int>(value: 1)
