Rename *bundleId as *bundleID.

Partial #585

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
Ross Goldberg 2024-10-25 12:49:21 -04:00
parent 3a5593c12d
commit 0e49da7bf1
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -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`.

View file

@ -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
}
}
}