Skip to content

Commit

Permalink
🚨 Fix tests for Swift 6
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkulman committed Dec 22, 2024
1 parent 542707e commit d3ec6a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sources/Features/Tests/Features/Feed/FeedViewModelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ final class FeedViewModelTests {
}

@Test
@MainActor
func testLoading() async {
let viewModel = FeedViewModel(source: .mock, feed: .mock) { _ in }
#expect(viewModel.state == .loading)
Expand Down Expand Up @@ -61,6 +62,7 @@ final class FeedViewModelTests {
}

@Test
@MainActor
func testError() async {
let viewModel = FeedViewModel(source: .mock, feed: .mock(error: .emptyFeed)) { _ in }
#expect(viewModel.state == .loading)
Expand Down

0 comments on commit d3ec6a3

Please sign in to comment.