Skip to content
Snippets Groups Projects
Commit a5f32364 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Add missing test for decoding empty MessageSendReport

parent adca4bfa
No related branches found
No related tags found
2 merge requests!13Update Bindings,!8Clean up latest merge
......@@ -29,4 +29,18 @@ final class MessageSendReportTests: XCTestCase {
XCTAssertNoDifference(decodedReport, report)
}
func testDecodeEmpty() throws {
let jsonString = "{}"
let jsonData = jsonString.data(using: .utf8)!
let decoder = JSONDecoder()
decoder.dataDecodingStrategy = .base64
let report = try decoder.decode(MessageSendReport.self, from: jsonData)
XCTAssertNoDifference(report, MessageSendReport(
roundList: nil,
messageId: nil,
timestamp: nil
))
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment