We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbb4d99 commit 4014186Copy full SHA for 4014186
Sources/VaporTestTools/Extensions/Response tools/Response+Checks.swift
@@ -42,7 +42,7 @@ extension TestableProperty where TestableType: Response {
42
}
43
44
public func has(statusCode value: HTTPStatus) -> Bool {
45
- return has(statusCode: value)
+ return element.http.status.code == value.code
46
47
48
public func has(statusCode value: HTTPStatus, message: String) -> Bool {
0 commit comments