mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
Rename *bundleId
as *bundleID
.
Partial #585 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
parent
3a5593c12d
commit
0e49da7bf1
2 changed files with 5 additions and 5 deletions
|
@ -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`.
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue