mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-24 09:48:21 +00:00
Removed other test causing invalid state in surrounding tests
This commit is contained in:
parent
fa26ac3122
commit
36ea8efd6f
1 changed files with 0 additions and 19 deletions
|
|
@ -1298,23 +1298,4 @@ static const CGRect kTestFrame = (CGRect){{0, 0}, {100, 100}};
|
|||
atIndexPath:[NSIndexPath indexPathForItem:10 inSection:10]]);
|
||||
}
|
||||
|
||||
- (void)test_whenQueryingAttributes_withNilIndexPath_thatReturnsNil {
|
||||
[self setUpWithStickyHeaders:NO topInset:0];
|
||||
|
||||
[self prepareWithData:@[
|
||||
[[IGLayoutTestSection alloc] initWithInsets:UIEdgeInsetsZero
|
||||
lineSpacing:0
|
||||
interitemSpacing:0
|
||||
headerHeight:0
|
||||
footerHeight:0
|
||||
items:@[
|
||||
[[IGLayoutTestItem alloc] initWithSize:CGSizeMake(33, 33)],
|
||||
]],
|
||||
]];
|
||||
|
||||
// Assign nil to a variable to bypass the nonnull compile-time check
|
||||
NSIndexPath *nilIndexPath = nil;
|
||||
XCTAssertNil([self.layout layoutAttributesForItemAtIndexPath:nilIndexPath]);
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
|||
Loading…
Reference in a new issue