diff --git a/ios/HackerNews.xcodeproj/project.pbxproj b/ios/HackerNews.xcodeproj/project.pbxproj index 81b6eb1e..1c0cea89 100644 --- a/ios/HackerNews.xcodeproj/project.pbxproj +++ b/ios/HackerNews.xcodeproj/project.pbxproj @@ -887,7 +887,7 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 62J2XHNK9T; GENERATE_INFOPLIST_FILE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 16.4; + IPHONEOS_DEPLOYMENT_TARGET = 17.6; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "com.emerge.hn.Hacker-NewsTests"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -908,7 +908,7 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 62J2XHNK9T; GENERATE_INFOPLIST_FILE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 16.4; + IPHONEOS_DEPLOYMENT_TARGET = 17.6; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "com.emerge.hn.Hacker-NewsTests"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -928,6 +928,7 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 62J2XHNK9T; GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.6; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "com.emerge.hn.Hacker-NewsUITests"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -946,6 +947,7 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 62J2XHNK9T; GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.6; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "com.emerge.hn.Hacker-NewsUITests"; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/ios/HackerNewsTests/SwiftSnapshotTest.swift b/ios/HackerNewsTests/SwiftSnapshotTest.swift index e1a7d338..65cb097a 100644 --- a/ios/HackerNewsTests/SwiftSnapshotTest.swift +++ b/ios/HackerNewsTests/SwiftSnapshotTest.swift @@ -17,7 +17,7 @@ final class SwiftSnapshotTest: XCTestCase { @MainActor override func setUp() { super.setUp() - appViewModel = AppViewModel() + appViewModel = AppViewModel(bookmarkStore: FakeBookmarkDataStore()) } override func tearDown() { @@ -37,16 +37,16 @@ final class SwiftSnapshotTest: XCTestCase { let defaultView = FeedScreen(model: appViewModel) // Test loading state - let loadingViewModel = AppViewModel() + let loadingViewModel = AppViewModel(bookmarkStore: FakeBookmarkDataStore()) loadingViewModel.feedState = FeedState( stories: [] ) let loadingView = FeedScreen(model: loadingViewModel) // Test loaded state with posts - let loadedViewModel = AppViewModel() + let loadedViewModel = AppViewModel(bookmarkStore: FakeBookmarkDataStore()) loadedViewModel.feedState = FeedState( - stories: PreviewHelpers.makeFakeStories().map { StoryState.loaded(story: $0) } + stories: PreviewHelpers.makeFakeStories().map { StoryState.loaded(content: $0.toStoryContent()) } ) let loadedView = FeedScreen(model: loadedViewModel)