Skip to content

Commit 3c638da

Browse files
authored
Cleanup (#64)
* Cleanup * Cleanup
1 parent 4bdb60c commit 3c638da

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

Examples/Screens/Pinning/CertificatePinningView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ struct CertificatePinningView: View {
4848
}
4949
.padding([.leading, .trailing, .top], 20)
5050
.navigationTitle("Certificate Pinning")
51+
.onAppear {
52+
Environment.current.configuration?.mockDataEnabled = false
53+
}
5154
}
5255

5356
func startRequest() {

Source/Log.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ internal class Log {
5959
print(String(format: "🎛️ Method: %@", request.method.rawValue.uppercased()))
6060
if case .data = request.requestType,
6161
case .started = state {
62-
print(String(format: "🔮 CURL: %@", urlRequest.curlString))
62+
print(String(format: "🔮 cURL: %@", urlRequest.curlString))
6363
}
6464

6565
if request.configuration.certificateData != nil {

Tests/TestExtensions.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1818
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1919

20+
#if !os(watchOS)
21+
2022
import XCTest
21-
@testable import TermiNetwork
2223
import SwiftUI
24+
@testable import TermiNetwork
2325

2426
class TestExtensions: XCTestCase {
2527
lazy var sampleImageURL = Environment.current.stringURL + "/sample.jpeg"
@@ -194,3 +196,5 @@ class TestExtensions: XCTestCase {
194196
XCTAssert(!failed)
195197
}
196198
}
199+
200+
#endif

Tests/TestReachability.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1818
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1919

20+
#if !os(watchOS)
21+
2022
import XCTest
2123
import SystemConfiguration
2224

@@ -158,3 +160,4 @@ class TestReachability: XCTestCase {
158160
XCTAssertFalse(failed)
159161
}
160162
}
163+
#endif

0 commit comments

Comments
 (0)