Initial Commit

This commit is contained in:
2020-11-11 14:49:55 -08:00
commit 4f1cddbfdd
466 changed files with 101572 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!")
}
}
}

0
Tests/LinuxMain.swift Normal file
View File