diff --git a/Tests/LayoutTests/ViewLayoutItemTests.swift b/Tests/LayoutTests/ViewLayoutItemTests.swift index d406d7aa..2e42256c 100644 --- a/Tests/LayoutTests/ViewLayoutItemTests.swift +++ b/Tests/LayoutTests/ViewLayoutItemTests.swift @@ -28,12 +28,17 @@ final class ViewLayoutItemTests: XCTestCase { layoutItems.append(layoutItem) return [constraint] } + // THEN + + expect(viewLayoutItem.layoutItemView) == view + + // WHEN + let superviewConstraints: [NSLayoutConstraint] = viewLayoutItem.superviewConstraints(superview) // THEN - expect(layoutItems === [superview]) == true - expect(viewLayoutItem.layoutItemView) == view expect(superviewConstraints === [constraint]) == true + expect(layoutItems === [superview]) == true } }