17 lines
480 B
Swift
17 lines
480 B
Swift
import Foundation
|
|
import Testing
|
|
@testable import T3Code
|
|
|
|
@Suite("Background refresh")
|
|
struct PlatformBackgroundRefreshTests {
|
|
@Test
|
|
@MainActor
|
|
func usesThePermittedIdentifierAndAConservativeRetryWindow() {
|
|
#expect(
|
|
PlatformBackgroundRefreshCoordinator.identifier
|
|
== "\(Bundle.main.bundleIdentifier ?? "com.t3tools.t3code.swiftui").refresh"
|
|
)
|
|
#expect(PlatformBackgroundRefreshPolicy.minimumDelay == 15 * 60)
|
|
}
|
|
}
|