Add coverage to updater class

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
This commit is contained in:
Tim Oliver 2023-10-06 03:08:34 -07:00 committed by Facebook GitHub Bot
parent 8840ad2bc8
commit ebbc90961b

View file

@ -58,6 +58,10 @@
XCTAssertTrue(executed);
}
- (void)test_thatDataUpdateBlockStateIsAvailable {
XCTAssertTrue(!self.adapter.updater.isInDataUpdateBlock);
}
- (void)test_whenInsertingIntoContext_thatCollectionViewUpdated {
self.dataSource.objects = @[@2];
[self.adapter reloadDataWithCompletion:nil];