mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 19:43:09 +00:00
✅ Add tests for new error cases
This commit is contained in:
parent
16734a7f89
commit
8db27258bc
1 changed files with 10 additions and 0 deletions
|
@ -98,4 +98,14 @@ class MASErrorTestCase: XCTestCase {
|
||||||
error = .noSearchResultsFound
|
error = .noSearchResultsFound
|
||||||
XCTAssertEqual(error.description, "No results found")
|
XCTAssertEqual(error.description, "No results found")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func testNotInstalled() {
|
||||||
|
error = .notInstalled
|
||||||
|
XCTAssertEqual(error.description, "Not installed")
|
||||||
|
}
|
||||||
|
|
||||||
|
func testUninstallFailed() {
|
||||||
|
error = .uninstallFailed
|
||||||
|
XCTAssertEqual(error.description, "Uninstall failed")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue