18 lines · 613 B · Swift
RawDownload
import Foundationimport Testing@testable import CodexBar @Suitestruct InstallOriginTests {    @Test    func detectsHomebrewCaskroom() {        #expect(            InstallOrigin                .isHomebrewCask(                    appBundleURL: URL(fileURLWithPath: "/opt/homebrew/Caskroom/codexbar/1.0.0/CodexBar.app")))        #expect(            InstallOrigin                .isHomebrewCask(appBundleURL: URL(fileURLWithPath: "/usr/local/Caskroom/codexbar/1.0.0/CodexBar.app")))        #expect(!InstallOrigin.isHomebrewCask(appBundleURL: URL(fileURLWithPath: "/Applications/CodexBar.app")))    }}