Skip to content

Commit

Permalink
Increase width when running tests to prevent auto layout warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
caiozullo committed Sep 28, 2023
1 parent 9703c8d commit fb4a3ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EssentialApp/EssentialAppTests/FeedAcceptanceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb4a3ae

Please sign in to comment.