Initial Commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
@testable import SwiftBackendShit
|
||||
import VaporTesting
|
||||
import Testing
|
||||
|
||||
@Suite("App Tests")
|
||||
struct SwiftBackendShitTests {
|
||||
@Test("Test Hello World Route")
|
||||
func helloWorld() async throws {
|
||||
try await withApp(configure: configure) { app in
|
||||
try await app.testing().test(.GET, "hello", afterResponse: { res async in
|
||||
#expect(res.status == .ok)
|
||||
#expect(res.body.string == "Hello, world!")
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user