Skip to content

Commit f9cbc8e

Browse files
committed
feat: assert with the expected value after a note is marked as actioned
1 parent 7d84bce commit f9cbc8e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Yosemite/YosemiteTests/Stores/InboxNotesStoreTests.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ final class InboxNotesStoreTests: XCTestCase {
244244
XCTAssertTrue(result.isSuccess)
245245
XCTAssertNotEqual(initialInboxNote.actions.first?.name, updatedInboxNote?.actions?.first?.name)
246246
XCTAssertNotEqual(initialInboxNote.actions.first?.label, updatedInboxNote?.actions?.first?.label)
247-
XCTAssertEqual(initialInboxNote.actions.first?.status, updatedInboxNote?.actions?.first?.status)
247+
XCTAssertNotEqual(initialInboxNote.actions.first?.status, updatedInboxNote?.actions?.first?.status)
248+
XCTAssertEqual("actioned", updatedInboxNote?.actions?.first?.status)
248249
}
249250

250251
func test_markInboxNoteAsActioned_then_it_returns_error_upon_response_error() {
@@ -308,7 +309,7 @@ private extension InboxNotesStoreTests {
308309
actions: [InboxAction(id: 13329,
309310
name: "test",
310311
label: "Test",
311-
status: "actioned",
312+
status: "unactioned",
312313
url: url)],
313314
title: "This is a test",
314315
content: content,

0 commit comments

Comments
 (0)