Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Tests/SwiftIMAPTests/FetchMessageInfoHeaderFallbackTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct FetchMessageInfoHeaderFallbackTests {
"A001 OK FETCH completed\r\n"
])

#expect(infos.count == 1)
try #require(infos.count == 1)
#expect(infos[0].replyTo == ["replies@example.com"])
}

Expand All @@ -49,7 +49,7 @@ struct FetchMessageInfoHeaderFallbackTests {
"A001 OK FETCH completed\r\n"
])

#expect(infos.count == 1)
try #require(infos.count == 1)
#expect(infos[0].subject == "What's New at A-Basin This Winter?")
#expect(infos[0].from == "Arapahoe Basin <info@connect.arapahoebasin.com>")
#expect(infos[0].to == ["Joel <joel@example.com>", "Michelle <michelle@example.com>"])
Expand All @@ -74,7 +74,7 @@ struct FetchMessageInfoHeaderFallbackTests {
"A001 OK FETCH completed\r\n"
])

#expect(infos.count == 1)
try #require(infos.count == 1)
#expect(infos[0].replyTo == ["Reply Desk <replies@example.com>"])
#expect(infos[0].additionalFields?["reply-to"] == nil)
#expect(infos[0].additionalHeaderFields == nil)
Expand Down Expand Up @@ -108,7 +108,7 @@ struct FetchMessageInfoHeaderFallbackTests {
"A001 OK FETCH completed\r\n"
])

#expect(infos.count == 1)
try #require(infos.count == 1)
#expect(infos[0].subject == "Envelope subject")
#expect(infos[0].from == "\"Envelope Sender\" <envelope@example.com>")
#expect(infos[0].replyTo == ["envelope-reply@example.com"])
Expand Down Expand Up @@ -139,7 +139,7 @@ struct FetchMessageInfoHeaderFallbackTests {
"A001 OK FETCH completed\r\n"
])

#expect(infos.count == 1)
try #require(infos.count == 1)
#expect(infos[0].subject == "")
#expect(infos[0].from == "Header Sender <header@example.com>")
}
Expand All @@ -156,7 +156,7 @@ struct FetchMessageInfoHeaderFallbackTests {
Data("A001 OK FETCH completed\r\n".utf8)
])

#expect(infos.count == 1)
try #require(infos.count == 1)
#expect(infos[0].subject == "Legacy receipt")
#expect(infos[0].from == "René <rene@example.com>")
#expect(infos[0].messageId == MessageID("<legacy@example.com>"))
Expand Down