mas/Tests/MasKitTests/Commands/PurchaseCommandSpec.swift
Ross Goldberg 5676dcb797
Re-enable purchase.
`purchase` seems to work on macOS 12+.

Resolve #289

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-06 03:13:10 -04:00

27 lines
629 B
Swift

//
// PurchaseCommandSpec.swift
// MasKitTests
//
// Created by Maximilian Blochberger on 2020-03-21.
// Copyright © 2020 mas-cli. All rights reserved.
//
import Nimble
import Quick
@testable import MasKit
public class PurchaseCommandSpec: QuickSpec {
override public func spec() {
beforeSuite {
MasKit.initialize()
}
describe("purchase command") {
it("purchases apps") {
let cmd = PurchaseCommand()
let result = cmd.run(PurchaseCommand.Options(appIds: []))
expect(result).to(beSuccess())
}
}
}
}