From 0e49da7bf1fc5eed50ab6308fb2edf93961d76f2 Mon Sep 17 00:00:00 2001 From: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> Date: Fri, 25 Oct 2024 12:49:21 -0400 Subject: [PATCH] Rename `*bundleId` as `*bundleID`. Partial #585 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> --- Sources/mas/Controllers/MasAppLibrary.swift | 8 ++++---- Tests/masTests/Controllers/MasAppLibrarySpec.swift | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/mas/Controllers/MasAppLibrary.swift b/Sources/mas/Controllers/MasAppLibrary.swift index 8e27760..d9e2f7d 100644 --- a/Sources/mas/Controllers/MasAppLibrary.swift +++ b/Sources/mas/Controllers/MasAppLibrary.swift @@ -28,10 +28,10 @@ class MasAppLibrary: AppLibrary { /// Finds an app using a bundle identifier. /// - /// - Parameter bundleId: Bundle identifier of app. - /// - Returns: Software Product of app if found; nil otherwise. - func installedApp(forBundleId bundleId: String) -> SoftwareProduct? { - softwareMap.product(for: bundleId) + /// - Parameter bundleID: Bundle identifier of app. + /// - Returns: `SoftwareProduct` for app if found; `nil` otherwise. + func installedApp(forBundleID bundleID: String) -> SoftwareProduct? { + softwareMap.product(for: bundleID) } /// Uninstalls all apps located at any of the elements of `appPaths`. diff --git a/Tests/masTests/Controllers/MasAppLibrarySpec.swift b/Tests/masTests/Controllers/MasAppLibrarySpec.swift index fbb85fb..69c2cc9 100644 --- a/Tests/masTests/Controllers/MasAppLibrarySpec.swift +++ b/Tests/masTests/Controllers/MasAppLibrarySpec.swift @@ -24,7 +24,7 @@ public class MasAppLibrarySpec: QuickSpec { expect(library.installedApps.first!.appName) == myApp.appName } it("can locate an app by bundle id") { - expect(library.installedApp(forBundleId: "com.example")!.bundleIdentifier) == myApp.bundleIdentifier + expect(library.installedApp(forBundleID: "com.example")!.bundleIdentifier) == myApp.bundleIdentifier } } }