mas/Tests/MasKitTests/Commands/PurchaseCommandSpec.swift

32 lines
769 B
Swift
Raw Normal View History

2020-03-21 11:31:46 +00:00
//
// PurchaseCommandSpec.swift
// MasKitTests
//
// Created by Maximilian Blochberger on 2020-03-21.
// Copyright © 2020 mas-cli. All rights reserved.
//
import Nimble
import Quick
2021-03-22 05:25:18 +00:00
@testable import MasKit
2021-05-08 22:49:32 +00:00
public class PurchaseCommandSpec: QuickSpec {
2021-05-09 20:25:20 +00:00
override public func spec() {
2021-04-23 07:01:18 +00:00
beforeSuite {
MasKit.initialize()
}
2020-03-21 11:31:46 +00:00
describe("purchase command") {
it("purchases apps") {
let cmd = PurchaseCommand()
let result = cmd.run(PurchaseCommand.Options(appIds: []))
2022-10-08 23:46:15 +00:00
expect(result)
.to(
beFailure { error in
expect(error) == .notSupported
})
2020-03-21 11:31:46 +00:00
}
}
}
}