mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
fixup tests
This commit is contained in:
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…
Reference in a new issue