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.

536 B
Raw Blame
@testable import Peel
import Testing

@MainActor
struct FrontmostAppTests {
    @Test func remembersThatSystemSettingsWasInFront() {
        let frontmost = FrontmostApp(observing: false)

        frontmost.note("org.example.other")
        let before = frontmost.hasShownSystemSettings
        frontmost.note("com.apple.systempreferences")
        frontmost.note("org.example.other")

        #expect(!before)
        #expect(frontmost.hasShownSystemSettings)
        #expect(frontmost.bundleIdentifier == "org.example.other")
    }
}