Skip to content

Commit 7ba5dee

Browse files
committed
Clean up tests
1 parent 1b13790 commit 7ba5dee

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

Tests/ErrorKitTests/ErrorKitTests.swift

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,6 @@ enum ErrorKitTests {
3838
let nestedError = DatabaseError.caught(FileError.caught(PermissionError.denied(permission: "~/Downloads/Profile.png")))
3939
#expect(ErrorKit.userFriendlyMessage(for: nestedError) == "Access to ~/Downloads/Profile.png was declined. To use this feature, please enable the permission in your device Settings.")
4040
}
41-
42-
@Test
43-
static func errorStringInterpolation() async throws {
44-
#expect("\(error: SomeThrowable())" == "Something failed hard.")
45-
}
46-
47-
@Test
48-
static func nestedErrorStringInterpolation() async throws {
49-
let nestedError = DatabaseError.caught(FileError.caught(PermissionError.denied(permission: "~/Downloads/Profile.png")))
50-
#expect("\(error: nestedError)" == "Access to ~/Downloads/Profile.png was declined. To use this feature, please enable the permission in your device Settings.")
51-
}
52-
53-
@Test
54-
static func chainedErrorStringInterpolation() async throws {
55-
#expect(
56-
"\(errorChain: SomeLocalizedError())" == """
57-
SomeLocalizedError [Struct]
58-
└─ userFriendlyMessage: "Something failed. It failed because it wanted to. Try again later."
59-
"""
60-
)
61-
}
6241
}
6342

6443
enum StringInterpolation {

0 commit comments

Comments
 (0)