Skip to content

Commit 4014186

Browse files
authored
Update Response+Checks.swift
1 parent fbb4d99 commit 4014186

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/VaporTestTools/Extensions/Response tools/Response+Checks.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ extension TestableProperty where TestableType: Response {
4242
}
4343

4444
public func has(statusCode value: HTTPStatus) -> Bool {
45-
return has(statusCode: value)
45+
return element.http.status.code == value.code
4646
}
4747

4848
public func has(statusCode value: HTTPStatus, message: String) -> Bool {

0 commit comments

Comments
 (0)