Skip to content

Commit 74a3d68

Browse files
committed
Remove unnecessary EnvironmentKey
1 parent a283c96 commit 74a3d68

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Examples/Tests/MacroExamples/Implementation/Accessor/EnvironmentValueMacroTests.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,12 @@ final class EnvironmentValueMacroMacroTests: XCTestCase {
2121
func testEnvironmentValue() {
2222
assertMacroExpansion(
2323
"""
24-
private struct MyEnvironmentKey: EnvironmentKey {
25-
static let defaultValue: String = "Default value"
26-
}
27-
2824
extension EnvironmentValues {
2925
@EnvironmentValue(for: MyEnvironmentKey.self)
3026
var myCustomValue: String
3127
}
3228
""",
3329
expandedSource: """
34-
private struct MyEnvironmentKey: EnvironmentKey {
35-
static let defaultValue: String = "Default value"
36-
}
37-
3830
extension EnvironmentValues {
3931
var myCustomValue: String {
4032
get {

0 commit comments

Comments
 (0)