Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
finestructure committed Jan 1, 2025
1 parent cad5a1a commit 85201b5
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions Tests/AppTests/GithubTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 85201b5

Please sign in to comment.