Skip to content

Commit fc897ad

Browse files
committed
feat: assert that the action's status is not changed afterward
1 parent f9cbc8e commit fc897ad

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Yosemite/YosemiteTests/Stores/InboxNotesStoreTests.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ final class InboxNotesStoreTests: XCTestCase {
2727
return viewStorage.countObjects(ofType: InboxNote.self)
2828
}
2929

30+
/// Convenience Property: Returns stored inbox actions count.
31+
///
32+
private var storedInboxActionsCount: Int {
33+
return viewStorage.countObjects(ofType: InboxAction.self)
34+
}
35+
3036
/// Store
3137
///
3238
private var store: InboxNotesStore!
@@ -290,8 +296,9 @@ final class InboxNotesStoreTests: XCTestCase {
290296
self.store.onAction(action)
291297
}
292298

293-
// Then no inbox notes should be stored
299+
// Then no inbox notes or actions should be stored
294300
XCTAssertEqual(storedInboxNotesCount, 0)
301+
XCTAssertEqual(storedInboxActionsCount, 0)
295302
XCTAssertFalse(result.isSuccess)
296303
}
297304
}

0 commit comments

Comments
 (0)