fixup tests

pull/2/head
Michael Kirk 6 years ago
parent 6c4dbfbc4c
commit e42192624f

@ -213,11 +213,11 @@ class OWSLinkPreviewTest: SSKBaseTestSwift {
let expectation = self.expectation(description: "link download and parsing") let expectation = self.expectation(description: "link download and parsing")
OWSLinkPreview.tryToBuildPreviewInfo(previewUrl: "https://www.youtube.com/watch?v=tP-Ipsat90c") OWSLinkPreview.tryToBuildPreviewInfo(previewUrl: "https://www.youtube.com/watch?v=tP-Ipsat90c")
.done { (draft) in .done { (draft: OWSLinkPreviewDraft) in
XCTAssertNotNil(draft) XCTAssertNotNil(draft)
XCTAssertEqual(draft.title, "Randomness is Random - Numberphile") XCTAssertEqual(draft.title, "Randomness is Random - Numberphile")
XCTAssertNotNil(draft.imageFilePath) XCTAssertNotNil(draft.jpegImageData)
expectation.fulfill() expectation.fulfill()
}.catch { (error) in }.catch { (error) in

Loading…
Cancel
Save