diff --git a/Tests/AppTests/GithubTests.swift b/Tests/AppTests/GithubTests.swift index 327d86109..c5cc41d07 100644 --- a/Tests/AppTests/GithubTests.swift +++ b/Tests/AppTests/GithubTests.swift @@ -318,7 +318,7 @@ class GithubTests: AppTestCase { await withDependencies { $0.httpClient.get = { @Sendable _, _ in - try .init(status: .ok, body: .fixture(named: "github-license-response.json")) + try .ok(fixture: "github-license-response.json") } } operation: { // MUT @@ -481,17 +481,6 @@ class GithubTests: AppTestCase { } -private extension ByteBuffer { - static func fixture(named filename: String) throws -> Self { - .init(data: try fixtureData(for: filename)) - } - - static func string(_ string: String) -> Self { - .init(string: string) - } -} - - private extension HTTPClient.Response { static func ok(body: String) -> Self { .init(status: .ok, body: .init(string: body))