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