diff --git a/Tests/LayoutTests/UIKit/UIView+FramesTests.swift b/Tests/LayoutTests/UIKit/UIView+FramesTests.swift index 99ecc26b..c10e4205 100644 --- a/Tests/LayoutTests/UIKit/UIView+FramesTests.swift +++ b/Tests/LayoutTests/UIKit/UIView+FramesTests.swift @@ -18,7 +18,8 @@ final class UIViewFramesTests: XCTestCase { // GIVEN - let view: UIView = givenView() + let view: UIView = .init() + view.translatesAutoresizingMaskIntoConstraints = false // WHEN @@ -33,7 +34,7 @@ final class UIViewFramesTests: XCTestCase { // GIVEN - let view: UIView = givenView() + let view: UIView = .init() // THEN @@ -53,11 +54,4 @@ final class UIViewFramesTests: XCTestCase { expect(view.contentCompressionResistancePriority(for: .horizontal)) == .disabled expect(view.contentCompressionResistancePriority(for: .vertical)) == .disabled } - - private func givenView() -> UIView { - let view: UIView = .init() - view.autoresizingMask = [] - view.translatesAutoresizingMaskIntoConstraints = false - return view - } }