mas/Tests/MasKitTests/Commands/PurchaseCommandSpec.swift
2024-02-17 14:04:01 -07:00

31 lines
769 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(
beFailure { error in
expect(error) == .notSupported
})
}
}
}
}