Skip to content

Commit

Permalink
simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw committed Jul 22, 2024
1 parent 0a18d6e commit e870465
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Tests/DependenciesTests/CacheTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@ final class CachedValueTests: XCTestCase {
}

struct OuterDependencyTests: TestDependencyKey {
let perform: @Sendable () -> Void
static var testValue: OuterDependencyTests {
@Dependency(InnerDependency.self) var innerDependency
innerDependency.perform()
return Self {
innerDependency.perform()
}
return Self()
}
}
struct InnerDependency: TestDependencyKey {
Expand Down

0 comments on commit e870465

Please sign in to comment.