mirror of
https://github.com/mas-cli/mas
synced 2024-11-25 13:00:23 +00:00
e639341d11
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
33 lines
730 B
Swift
33 lines
730 B
Swift
//
|
|
// HomeSpec.swift
|
|
// masTests
|
|
//
|
|
// Created by Ben Chatelain on 2018-12-29.
|
|
// Copyright © 2018 mas-cli. All rights reserved.
|
|
//
|
|
|
|
import Nimble
|
|
import Quick
|
|
|
|
@testable import mas
|
|
|
|
public class HomeSpec: QuickSpec {
|
|
override public func spec() {
|
|
let searcher = MockAppStoreSearcher()
|
|
|
|
beforeSuite {
|
|
MAS.initialize()
|
|
}
|
|
describe("home command") {
|
|
beforeEach {
|
|
searcher.reset()
|
|
}
|
|
it("can't find app with unknown ID") {
|
|
expect {
|
|
try MAS.Home.parse(["999"]).run(searcher: searcher)
|
|
}
|
|
.to(throwError(MASError.unknownAppID(999)))
|
|
}
|
|
}
|
|
}
|
|
}
|