Files
SwiftBackendShit/Tests/SwiftBackendShitTests/SwiftBackendShitTests.swift
T
2026-10-02 23:47:44 +03:00

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