Skip to content

Commit

Permalink
use Swift Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ski-u committed Oct 16, 2024
1 parent bc6ef9c commit 0fa4bc9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Features/Tests/TodayTests/TodayTests.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import APIClient
import ComposableArchitecture
import Foundation
import Models
import Testing
@testable import Today
import XCTest

final class TodayTests: XCTestCase {
@MainActor
func test_fetch() async {
@MainActor
struct TodayTests {
@Test
func successfulFetch() async throws {
let store = TestStore(
initialState: TodayReducer.State()
) {
Expand All @@ -25,9 +27,9 @@ final class TodayTests: XCTestCase {
$0.picture = mock
}
}

@MainActor
func test_fetch_failure() async {
@Test
func failedFetch() async throws {
let store = TestStore(
initialState: TodayReducer.State()
) {
Expand Down

0 comments on commit 0fa4bc9

Please sign in to comment.