File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff 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-
495484private extension HTTPClient . Response {
496485 static func ok( body: String ) -> Self {
497486 . init( status: . ok, body: . init( string: body) )
You can’t perform that action at this time.
0 commit comments