Schafkopf-Server/Tests/AppTests/AppTests.swift
Christoph Hagen cdd5093c05 first commit
2021-11-25 19:15:38 +01:00

16 lines
393 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", afterResponse: { res in
XCTAssertEqual(res.status, .ok)
XCTAssertEqual(res.body.string, "Hello, world!")
})
}
}