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.

583 B
Raw Blame
@testable import PeelCore
import Testing

struct AppDataQuestionTests {
    @Test func aScanWaitsOnMacOSOnlyWhileItsQuestionIsInFrontAndFullDiskAccessIsMissing() {
        #expect(AppDataQuestion.isAsked(frontmost: "com.apple.UserNotificationCenter", hasFullDiskAccess: false))
        #expect(!AppDataQuestion.isAsked(frontmost: "com.apple.UserNotificationCenter", hasFullDiskAccess: true))
        #expect(!AppDataQuestion.isAsked(frontmost: "com.apple.Safari", hasFullDiskAccess: false))
        #expect(!AppDataQuestion.isAsked(frontmost: nil, hasFullDiskAccess: false))
    }
}