Skip to content

Commit 85201b5

Browse files
committed
Cleanup
1 parent cad5a1a commit 85201b5

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Tests/AppTests/GithubTests.swift

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ class GithubTests: AppTestCase {
318318

319319
await withDependencies {
320320
$0.httpClient.get = { @Sendable _, _ in
321-
try .init(status: .ok, body: .fixture(named: "github-license-response.json"))
321+
try .ok(fixture: "github-license-response.json")
322322
}
323323
} operation: {
324324
// MUT
@@ -481,17 +481,6 @@ class GithubTests: AppTestCase {
481481
}
482482

483483

484-
private extension ByteBuffer {
485-
static func fixture(named filename: String) throws -> Self {
486-
.init(data: try fixtureData(for: filename))
487-
}
488-
489-
static func string(_ string: String) -> Self {
490-
.init(string: string)
491-
}
492-
}
493-
494-
495484
private extension HTTPClient.Response {
496485
static func ok(body: String) -> Self {
497486
.init(status: .ok, body: .init(string: body))

0 commit comments

Comments
 (0)