2020-03-21 12:31:46 +01:00
|
|
|
//
|
2024-10-05 23:41:55 -04:00
|
|
|
// PurchaseSpec.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
|
|
|
|
2024-10-01 18:55:04 -04:00
|
|
|
public class PurchaseSpec: QuickSpec {
|
2024-10-18 10:28:44 -04:00
|
|
|
override public func spec() {
|
2021-04-23 00:01:18 -07:00
|
|
|
beforeSuite {
|
2024-10-25 13:21:19 -04:00
|
|
|
MAS.initialize()
|
2021-04-23 00:01:18 -07:00
|
|
|
}
|
2024-10-01 18:55:04 -04:00
|
|
|
xdescribe("purchase command") {
|
|
|
|
xit("purchases apps") {
|
|
|
|
expect {
|
2024-10-25 13:21:19 -04:00
|
|
|
try MAS.Purchase.parse(["999"]).run(appLibrary: AppLibraryMock())
|
2024-10-01 18:55:04 -04:00
|
|
|
}
|
|
|
|
.toNot(throwError())
|
2020-03-21 12:31:46 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|