From f8a2903d027c68fd9e4bcd8ea150abfadaa70210 Mon Sep 17 00:00:00 2001 From: Martin Kralik Date: Sat, 22 Apr 2017 09:50:19 -0700 Subject: [PATCH] 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 --- YogaKit/Tests/YogaKitTests.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/YogaKit/Tests/YogaKitTests.m b/YogaKit/Tests/YogaKitTests.m index d3d8cd0f..7fa3b0b5 100644 --- a/YogaKit/Tests/YogaKitTests.m +++ b/YogaKit/Tests/YogaKitTests.m @@ -21,7 +21,8 @@ - (void)testConfigureLayoutIsNoOpWithNilBlock { UIView *view = [[UIView alloc] initWithFrame:CGRectZero]; - XCTAssertNoThrow([view configureLayoutWithBlock:nil]); + id block = nil; + XCTAssertNoThrow([view configureLayoutWithBlock:block]); } - (void)testConfigureLayoutBlockWorksWithValidBlock