Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

741 B
Raw Blame
@testable import PeelCore
import Testing

struct MissingPermissionsNoticeTests {
    @Test func aHelperThatIsInstalledButNotAnsweringIsRepairedNotSetUp() {
        #expect(MissingPermissionsNotice(helper: .notAnswering, othersMissing: false) == .repairTheHelper)
        #expect(MissingPermissionsNotice(helper: .notAnswering, othersMissing: true) == .setUpAndRepairTheHelper)
    }

    @Test func whatIsNotThereIsSetUp() {
        for helper in [PrivilegedHelper.Standing.ready, .notInstalled, .waitingForApproval, .notThisAccount] {
            #expect(MissingPermissionsNotice(helper: helper, othersMissing: true) == .setUp)
            #expect(MissingPermissionsNotice(helper: helper, othersMissing: false) == .setUp)
        }
    }
}