Skip to content

Commit 0f763d8

Browse files
committed
Fix tests
1 parent da88115 commit 0f763d8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

WordPress/WordPressTest/BloggingPromptsServiceTests.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ final class BloggingPromptsServiceTests: XCTestCase {
7373

7474
XCTAssertFalse(firstPrompt.answered)
7575
XCTAssertEqual(firstPrompt.answerCount, 0)
76-
XCTAssertNotNil(firstPrompt.displayAvatarURLs)
77-
XCTAssertTrue(firstPrompt.displayAvatarURLs!.isEmpty)
76+
XCTAssertTrue(firstPrompt.displayAvatarURLs.isEmpty)
7877

7978
// Verify mappings for the second prompt
8079
let secondPrompt = prompts.last!
@@ -91,8 +90,7 @@ final class BloggingPromptsServiceTests: XCTestCase {
9190

9291
XCTAssertTrue(secondPrompt.answered)
9392
XCTAssertEqual(secondPrompt.answerCount, 1)
94-
XCTAssertNotNil(secondPrompt.displayAvatarURLs)
95-
XCTAssertEqual(secondPrompt.displayAvatarURLs!.count, 1)
93+
XCTAssertEqual(secondPrompt.displayAvatarURLs.count, 1)
9694

9795
expectation.fulfill()
9896

0 commit comments

Comments
 (0)