From 85201b585c1a746bfcf046cd215925a374e9047f Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Wed, 1 Jan 2025 17:59:59 +0100 Subject: [PATCH] Cleanup --- Tests/AppTests/GithubTests.swift | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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))