Skip to content

Commit

Permalink
small test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 committed May 9, 2018
1 parent 6cfd4a9 commit 8c73eeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/VaporTests/ApplicationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -534,10 +534,10 @@ class ApplicationTests: XCTestCase {

// with specific content type
try Application.makeTest { router in
router.get("hey") { req -> Response in
router.get("hello-html") { req -> Response in
return req.makeResponse("Hey!", as: .html)
}
}.test(.GET, "hey") { res in
}.test(.GET, "hello-html") { res in
XCTAssertEqual(res.http.status, .ok)
XCTAssertEqual(res.http.contentType, MediaType.html)
XCTAssertEqual(res.http.body.string, "Hey!")
Expand Down

0 comments on commit 8c73eeb

Please sign in to comment.