Removed the "app", "appTests", and "package" cases from the File enumeration in the library target.

This commit is contained in:
2025-02-05 00:16:09 +01:00
parent 91762b18cd
commit af73e6d1a2
6 changed files with 67 additions and 122 deletions
@@ -1,33 +0,0 @@
import AppLibrary
import Hummingbird
import HummingbirdTesting
import Testing
struct AppTests {
// MARK: Properties
private let arguments = TestArguments()
private let builder = AppBuilder(name: "App")
// MARK: Route tests
@Test(arguments: ["/"])
func routes(_ uri: String) async throws {
let app = try await builder(arguments)
try await app.test(.router) { client in
try await client.execute(uri: uri, method: .get) { response in
#expect(response.status == .ok)
#expect(response.body == .empty)
}
}
}
}
// MARK: ByteBuffer+Constants
private extension ByteBuffer {
static let empty = ByteBuffer(string: "")
}