File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Networking/NetworkingTests/Mapper Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,14 @@ final class JustInTimeMessageListMapperTests: XCTestCase {
1515 assertEqual ( 1 , justInTimeMessages? . count)
1616 }
1717
18+ /// Verifies that the message is parsed.
19+ ///
20+ func test_JustInTimeMessageListMapper_parses_the_JustInTimeMessage_in_response_without_data_envelope( ) throws {
21+ let justInTimeMessages = try mapLoadJustInTimeMessageListResponseWithoutDataEnvelope ( )
22+ XCTAssertNotNil ( justInTimeMessages)
23+ assertEqual ( 1 , justInTimeMessages? . count)
24+ }
25+
1826 /// Verifies that the fields are all parsed correctly.
1927 ///
2028 func test_JustInTimeMessageListMapper_parses_all_fields_in_result( ) throws {
@@ -55,4 +63,10 @@ private extension JustInTimeMessageListMapperTests {
5563 func mapLoadJustInTimeMessageListResponse( ) throws -> [ JustInTimeMessage ] ? {
5664 return try mapJustInTimeMessageList ( from: " just-in-time-message-list " )
5765 }
66+
67+ /// Returns the JustInTimeMessageListMapper output from `just-in-time-message-list-without-data.json`
68+ ///
69+ func mapLoadJustInTimeMessageListResponseWithoutDataEnvelope( ) throws -> [ JustInTimeMessage ] ? {
70+ return try mapJustInTimeMessageList ( from: " just-in-time-message-list-without-data " )
71+ }
5872}
You can’t perform that action at this time.
0 commit comments