mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-24 09:48:21 +00:00
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:
parent
8840ad2bc8
commit
ebbc90961b
1 changed files with 4 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue