first commit

This commit is contained in:
Michael Simard
2020-05-25 20:58:43 -05:00
commit ba9bfd5e6a
13 changed files with 282 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
@testable import App
import XCTVapor
final class AppTests: XCTestCase {
func testHelloWorld() throws {
let app = Application(.testing)
defer { app.shutdown() }
try configure(app)
try app.test(.GET, "hello") { res in
XCTAssertEqual(res.status, .ok)
XCTAssertEqual(res.body.string, "Hello, world!")
}
}
}