Skip to content

Commit

Permalink
Cleanup (#64)
Browse files Browse the repository at this point in the history
* Cleanup

* Cleanup
  • Loading branch information
billp authored Dec 31, 2024
1 parent 4bdb60c commit 3c638da
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Examples/Screens/Pinning/CertificatePinningView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ struct CertificatePinningView: View {
}
.padding([.leading, .trailing, .top], 20)
.navigationTitle("Certificate Pinning")
.onAppear {
Environment.current.configuration?.mockDataEnabled = false
}
}

func startRequest() {
Expand Down
2 changes: 1 addition & 1 deletion Source/Log.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ internal class Log {
print(String(format: "🎛️ Method: %@", request.method.rawValue.uppercased()))
if case .data = request.requestType,
case .started = state {
print(String(format: "🔮 CURL: %@", urlRequest.curlString))
print(String(format: "🔮 cURL: %@", urlRequest.curlString))
}

if request.configuration.certificateData != nil {
Expand Down
6 changes: 5 additions & 1 deletion Tests/TestExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

#if !os(watchOS)

import XCTest
@testable import TermiNetwork
import SwiftUI
@testable import TermiNetwork

class TestExtensions: XCTestCase {
lazy var sampleImageURL = Environment.current.stringURL + "/sample.jpeg"
Expand Down Expand Up @@ -194,3 +196,5 @@ class TestExtensions: XCTestCase {
XCTAssert(!failed)
}
}

#endif
3 changes: 3 additions & 0 deletions Tests/TestReachability.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

#if !os(watchOS)

import XCTest
import SystemConfiguration

Expand Down Expand Up @@ -158,3 +160,4 @@ class TestReachability: XCTestCase {
XCTAssertFalse(failed)
}
}
#endif

0 comments on commit 3c638da

Please sign in to comment.