fixup tests

This commit is contained in:
Michael Kirk 2019-03-29 15:43:08 -06:00
parent 6c4dbfbc4c
commit e42192624f

View file

@ -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