File tree Expand file tree Collapse file tree 2 files changed +3
-28
lines changed
Sources/VaporTestTools/Extensions Expand file tree Collapse file tree 2 files changed +3
-28
lines changed Original file line number Diff line number Diff line change 6
6
//
7
7
8
8
import Foundation
9
- @ testable import Vapor
9
+ import Vapor
10
10
11
11
12
12
extension TestableProperty where TestableType: Response {
@@ -20,10 +20,10 @@ extension TestableProperty where TestableType: Response {
20
20
print ( " \t \( header. name. description) = \( header. value) " )
21
21
}
22
22
print ( " Content: " )
23
- if let size = element. content . container . http . body . count {
23
+ if let size = element. testable . contentSize {
24
24
print ( " \t Size: \( String ( size) ) " )
25
25
}
26
- if let mediaType = element. content . container . http. contentType {
26
+ if let mediaType = element. http. contentType {
27
27
print ( " \t Media type: \( mediaType. description) " )
28
28
}
29
29
if let stringContent = element. testable. contentString {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments