🔍 Verify command results

This commit is contained in:
Chris Araman 2021-06-03 18:57:30 -07:00 committed by Ben Chatelain
parent ad8d6fe1dd
commit cfef4aebc4
10 changed files with 18 additions and 28 deletions

View file

@ -17,11 +17,10 @@ public class AccountCommandSpec: QuickSpec {
MasKit.initialize()
}
describe("Account command") {
it("displays active account") {
xit("displays active account") {
let cmd = AccountCommand()
let result = cmd.run(AccountCommand.Options())
print(result)
// expect(result).to(beSuccess())
expect(result).to(beSuccess())
}
}
}

View file

@ -20,8 +20,7 @@ public class InstallCommandSpec: QuickSpec {
it("installs apps") {
let cmd = InstallCommand()
let result = cmd.run(InstallCommand.Options(appIds: [], forceInstall: false))
print(result)
// expect(result).to(beSuccess())
expect(result).to(beSuccess())
}
}
}

View file

@ -17,11 +17,10 @@ public class ListCommandSpec: QuickSpec {
MasKit.initialize()
}
describe("list command") {
it("lists stuff") {
it("lists apps") {
let list = ListCommand()
let result = list.run(ListCommand.Options())
print(result)
// expect(result).to(beSuccess())
expect(result).to(beSuccess())
}
}
}

View file

@ -17,11 +17,10 @@ public class LuckyCommandSpec: QuickSpec {
MasKit.initialize()
}
describe("lucky command") {
it("installs the first app matching a search") {
xit("installs the first app matching a search") {
let cmd = LuckyCommand()
let result = cmd.run(LuckyCommand.Options(appName: "", forceInstall: false))
print(result)
// expect(result).to(beSuccess())
expect(result).to(beSuccess())
}
}
}

View file

@ -20,8 +20,7 @@ public class PurchaseCommandSpec: QuickSpec {
it("purchases apps") {
let cmd = PurchaseCommand()
let result = cmd.run(PurchaseCommand.Options(appIds: []))
print(result)
// expect(result).to(beSuccess())
expect(result).to(beSuccess())
}
}
}

View file

@ -17,11 +17,10 @@ public class ResetCommandSpec: QuickSpec {
MasKit.initialize()
}
describe("reset command") {
it("updates stuff") {
it("resets the App Store state") {
let cmd = ResetCommand()
let result = cmd.run(ResetCommand.Options(debug: false))
print(result)
// expect(result).to(beSuccess())
expect(result).to(beSuccess())
}
}
}

View file

@ -16,12 +16,11 @@ public class SignInCommandSpec: QuickSpec {
beforeSuite {
MasKit.initialize()
}
describe("signn command") {
it("updates stuff") {
describe("signin command") {
xit("signs in") {
let cmd = SignInCommand()
let result = cmd.run(SignInCommand.Options(username: "", password: "", dialog: false))
print(result)
// expect(result).to(beSuccess())
expect(result).to(beSuccess())
}
}
}

View file

@ -17,11 +17,10 @@ public class SignOutCommandSpec: QuickSpec {
MasKit.initialize()
}
describe("signout command") {
it("updates stuff") {
it("signs out") {
let cmd = SignOutCommand()
let result = cmd.run(SignOutCommand.Options())
print(result)
// expect(result).to(beSuccess())
expect(result).to(beSuccess())
}
}
}

View file

@ -17,11 +17,10 @@ public class UpgradeCommandSpec: QuickSpec {
MasKit.initialize()
}
describe("upgrade command") {
it("updates stuff") {
it("upgrades stuff") {
let cmd = UpgradeCommand()
let result = cmd.run(UpgradeCommand.Options(apps: [""]))
print(result)
// expect(result).to(beSuccess())
expect(result).to(beSuccess())
}
}
}

View file

@ -20,8 +20,7 @@ public class VersionCommandSpec: QuickSpec {
it("displays the current version") {
let cmd = VersionCommand()
let result = cmd.run(VersionCommand.Options())
print(result)
// expect(result).to(beSuccess())
expect(result).to(beSuccess())
}
}
}