Add PromiseKit dependency

- Added PromiseKit dependency
This commit is contained in:
2018-11-15 22:08:00 -04:00
parent 2689d86c18
commit be7b6b5881
541 changed files with 46282 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import PromiseKit
import PMKBolts
import XCTest
import Bolts
class TestBolts: XCTestCase {
func test() {
let ex = expectation(description: "")
let value = { NSString(string: "1") }
firstly { () -> Promise<Void> in
return Promise()
}.then { _ -> BFTask<NSString> in
return BFTask(result: value())
}.done { obj in
XCTAssertEqual(obj, value())
ex.fulfill()
}
waitForExpectations(timeout: 1)
}
}