Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stephtelolahy committed Jan 2, 2025
1 parent 1ce85d2 commit c32b74d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions WildWestOnline/Utilities/Redux/Tests/LoggerTest.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//
// LoggerTest.swift
// WildWestOnline
//
// Created by Hugues Stéphano TELOLAHY on 02/01/2025.
//

import Redux
import Testing

struct LoggerTest {
@Test func useLoggerReducer() async throws {
// Given
let store = await Store<String, Int, Void>(
initialState: "initial",
reducer: loggerReducer(),
dependencies: ()
)

// When
await store.dispatch(1)

// Then
await #expect(store.state == "initial")
}
}

0 comments on commit c32b74d

Please sign in to comment.