Skip to content

Commit

Permalink
Add coverage to updater class
Browse files Browse the repository at this point in the history
Summary: This diff adds a small, essentially no-op test to add coverage to the `isInDataUpdateBlock` method of `IGListReloadDataUpdater`.

Differential Revision: D49906263

fbshipit-source-id: e59a04721d6af58cc2b6148cd688be8225bf3fb8
  • Loading branch information
TimOliver authored and facebook-github-bot committed Oct 6, 2023
1 parent 8840ad2 commit ebbc909
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/IGListReloadDataUpdaterTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ - (void)test_whenCompletionBlockExists_thatBlockExecuted {
XCTAssertTrue(executed);
}

- (void)test_thatDataUpdateBlockStateIsAvailable {
XCTAssertTrue(!self.adapter.updater.isInDataUpdateBlock);
}

- (void)test_whenInsertingIntoContext_thatCollectionViewUpdated {
self.dataSource.objects = @[@2];
[self.adapter reloadDataWithCompletion:nil];
Expand Down

0 comments on commit ebbc909

Please sign in to comment.