17 lines
473 B
Swift
17 lines
473 B
Swift
@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!")
|
|
})
|
|
}
|
|
}
|
|
}
|