mirror of
https://github.com/mas-cli/mas
synced 2024-11-24 20:43:10 +00:00
cc219fe644
Rename `AppLibraryMock` as `MockAppLibrary`. Partial #585 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
28 lines
609 B
Swift
28 lines
609 B
Swift
//
|
|
// PurchaseSpec.swift
|
|
// masTests
|
|
//
|
|
// Created by Maximilian Blochberger on 2020-03-21.
|
|
// Copyright © 2020 mas-cli. All rights reserved.
|
|
//
|
|
|
|
import Nimble
|
|
import Quick
|
|
|
|
@testable import mas
|
|
|
|
public class PurchaseSpec: QuickSpec {
|
|
override public func spec() {
|
|
beforeSuite {
|
|
MAS.initialize()
|
|
}
|
|
xdescribe("purchase command") {
|
|
xit("purchases apps") {
|
|
expect {
|
|
try MAS.Purchase.parse(["999"]).run(appLibrary: MockAppLibrary())
|
|
}
|
|
.toNot(throwError())
|
|
}
|
|
}
|
|
}
|
|
}
|