native macOS codings agent orchestrator prowl.onev.cat
Something went wrong. Try again.
Swift
123456789101112131415161718192021222324import Sparkleimport Testing
@testable import Prowl
struct UpdaterClientTests { @Test func backgroundUpdateDoesNotPreserveInstallingState() { #expect(silentBackgroundUpdateChoice(for: .notDownloaded) == .dismiss) #expect(silentBackgroundUpdateChoice(for: .downloaded) == .dismiss) #expect(silentBackgroundUpdateChoice(for: .installing) == .skip) }
@Test func installAndRelaunchRequiresConfirmation() { #expect(installAndRelaunchChoice(didConfirm: true) == .install) #expect(installAndRelaunchChoice(didConfirm: false) == .skip) }
@Test func userInitiatedInstallingUpdateRequiresImmediateConfirmation() { #expect(!shouldConfirmInstallAndRelaunchImmediately(for: .notDownloaded)) #expect(!shouldConfirmInstallAndRelaunchImmediately(for: .downloaded)) #expect(shouldConfirmInstallAndRelaunchImmediately(for: .installing)) }}