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 GreeMoz committed Jan 31, 2024
1 parent 2c4df5d commit db03465
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 db03465

Please sign in to comment.