fixed invalid test
Summary: The `block` paramenter is marked as nonnull, so we can't pass `nil` directly in. Reviewed By: dshahidehpour Differential Revision: D4929692 fbshipit-source-id: a35ef2940d6986f4ff55444d8a99ba17eb7c677e
This commit is contained in:
committed by
Facebook Github Bot
parent
60977de242
commit
f8a2903d02
@@ -21,7 +21,8 @@
|
|||||||
- (void)testConfigureLayoutIsNoOpWithNilBlock
|
- (void)testConfigureLayoutIsNoOpWithNilBlock
|
||||||
{
|
{
|
||||||
UIView *view = [[UIView alloc] initWithFrame:CGRectZero];
|
UIView *view = [[UIView alloc] initWithFrame:CGRectZero];
|
||||||
XCTAssertNoThrow([view configureLayoutWithBlock:nil]);
|
id block = nil;
|
||||||
|
XCTAssertNoThrow([view configureLayoutWithBlock:block]);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)testConfigureLayoutBlockWorksWithValidBlock
|
- (void)testConfigureLayoutBlockWorksWithValidBlock
|
||||||
|
Reference in New Issue
Block a user