From fb4a3aef8d551a0fe4a8f25b50e20083cefa885c Mon Sep 17 00:00:00 2001 From: Caio Zullo Date: Thu, 28 Sep 2023 13:54:14 +0300 Subject: [PATCH] Increase width when running tests to prevent auto layout warnings --- EssentialApp/EssentialAppTests/FeedAcceptanceTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EssentialApp/EssentialAppTests/FeedAcceptanceTests.swift b/EssentialApp/EssentialAppTests/FeedAcceptanceTests.swift index 45495b17..5901aef4 100644 --- a/EssentialApp/EssentialAppTests/FeedAcceptanceTests.swift +++ b/EssentialApp/EssentialAppTests/FeedAcceptanceTests.swift @@ -87,7 +87,7 @@ class FeedAcceptanceTests: XCTestCase { store: InMemoryFeedStore = .empty ) -> ListViewController { let sut = SceneDelegate(httpClient: httpClient, store: store, scheduler: .immediateOnMainQueue) - sut.window = UIWindow(frame: CGRect(x: 0, y: 0, width: 1, height: 1)) + sut.window = UIWindow(frame: CGRect(x: 0, y: 0, width: 390, height: 1)) sut.configureWindow() let nav = sut.window?.rootViewController as? UINavigationController