File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Sources/AppState/Application/Types/State Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,9 @@ extension Application {
92
92
scope: Scope
93
93
) {
94
94
self . type = type
95
- self . _value = initial ( )
96
- self . initial = initial ( )
95
+ let initialValue = initial ( )
96
+ self . _value = initialValue
97
+ self . initial = initialValue
97
98
self . scope = scope
98
99
}
99
100
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ final class AppStateTests: XCTestCase {
93
93
try await super. setUp ( )
94
94
95
95
await MainActor . run {
96
- // Reset all states to their initial values to ensure test isolation.
96
+ // Reset all states to their initial values to ensure test isolation.
97
97
Application . reset ( \. username)
98
98
Application . reset ( \. customEnum)
99
99
Application . reset ( \. customStruct)
@@ -103,6 +103,7 @@ final class AppStateTests: XCTestCase {
103
103
Application . reset ( \. colors)
104
104
Application . reset ( \. isLoading)
105
105
106
+ // Ensure logging is enabled.
106
107
Application . logging ( isEnabled: true )
107
108
}
108
109
}
You can’t perform that action at this time.
0 commit comments