Fixed issues encountered in the unit tests target after the project transitioned to Swift 6 and strict concurrency.
This commit is contained in:
@@ -3,6 +3,7 @@ import Testing
|
||||
|
||||
@testable import Todos
|
||||
|
||||
@MainActor
|
||||
@Suite("TaskGroupListView view model tests")
|
||||
struct TaskGroupListViewModelTests {
|
||||
|
||||
@@ -32,7 +33,7 @@ struct TaskGroupListViewModelTests {
|
||||
|
||||
@Test(
|
||||
"count returns zero when empty data",
|
||||
arguments: TodoGroup.allCases
|
||||
arguments: [TodoGroup.today, .upcoming, .overdue, .completed]
|
||||
)
|
||||
func countWhenEmptyData(for group: TodoGroup) throws {
|
||||
// GIVEN
|
||||
@@ -47,7 +48,7 @@ struct TaskGroupListViewModelTests {
|
||||
|
||||
@Test(
|
||||
"count returns correct count when filled data",
|
||||
arguments: TodoGroup.allCases
|
||||
arguments: [TodoGroup.today, .upcoming, .overdue, .completed]
|
||||
)
|
||||
func countWhenFilledData(for group: TodoGroup) throws {
|
||||
// GIVEN
|
||||
|
||||
Reference in New Issue
Block a user