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.

541 B
Raw Blame
@testable import Peel
import Testing

@MainActor
struct WaitingPermissionsTests {
    @Test func namesTheHelperAsSystemSettingsDoes() {
        typealias Waiting = HomeModel.Permission.Waiting
        let named = HomeModel.Permission.inSystemSettings

        #expect(named([.helper]) == Waiting(allowsPeel: true, others: []))
        #expect(named([.fullDiskAccess, .helper]) == Waiting(allowsPeel: true, others: [.fullDiskAccess]))
        #expect(named([.fullDiskAccess]) == Waiting(allowsPeel: false, others: [.fullDiskAccess]))
    }
}