File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed
ExampleMVVMTests/Infrastructure/Network Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -86,33 +86,6 @@ class NetworkServiceTests: XCTestCase {
86
86
//then
87
87
wait ( for: [ expectation] , timeout: 0.1 )
88
88
}
89
-
90
- func test_whenMalformedUrlPassed_shouldReturnUrlGenerationError( ) {
91
- //given
92
- let config = NetworkConfigurableMock ( )
93
- let expectation = self . expectation ( description: " Should return correct data " )
94
-
95
- let expectedResponseData = " Response data " . data ( using: . utf8) !
96
- let sut = DefaultNetworkService ( config: config, sessionManager: NetworkSessionManagerMock ( response: nil ,
97
- data: expectedResponseData,
98
- error: nil ) )
99
- //when
100
- _ = sut. request ( endpoint: EndpointMock ( path: " -;@,?:ą " , method: . get) ) { result in
101
- do {
102
- _ = try result. get ( )
103
- XCTFail ( " Should throw url generation error " )
104
- } catch let error {
105
- guard case NetworkError . urlGeneration = error else {
106
- XCTFail ( " Should throw url generation error " )
107
- return
108
- }
109
-
110
- expectation. fulfill ( )
111
- }
112
- }
113
- //then
114
- wait ( for: [ expectation] , timeout: 0.1 )
115
- }
116
89
117
90
func test_whenStatusCodeEqualOrAbove400_shouldReturnhasStatusCodeError( ) {
118
91
//given
You can’t perform that action at this time.
0 commit comments