Skip to content

Commit

Permalink
tests: import foundationnetworking
Browse files Browse the repository at this point in the history
  • Loading branch information
levibostian committed Aug 17, 2021
1 parent 16f85ed commit 7e0f9c9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/SDK/Service/HttpClient.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

typealias HttpHeaders = [String: String]

Expand Down
3 changes: 3 additions & 0 deletions Sources/SDK/Service/HttpRequestRunner.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

/**
Exists to be able to mock http requests so we can test our HttpClient's response handling logic.
Expand Down
3 changes: 3 additions & 0 deletions Sources/SDK/autogenerated/AutoMockable.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
// swiftlint:disable all

import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

/**
######################################################
Expand Down
3 changes: 3 additions & 0 deletions Sources/Templates/AutoMockable.stencil
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// swiftlint:disable all

import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

/**
######################################################
Expand Down

0 comments on commit 7e0f9c9

Please sign in to comment.