Files
cod-backend/Tests/AppTests/AppTests.swift
Michael Simard ba9bfd5e6a first commit
2020-05-25 20:58:43 -05:00

16 lines
377 B
Swift

@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!")
}
}
}