From 7c77aa0f9229caa308a55afffabd6a8fe92f3aa8 Mon Sep 17 00:00:00 2001 From: Dariusz Rybicki <dariusz@elixxir.io> Date: Mon, 25 Jul 2022 18:57:29 +0100 Subject: [PATCH] Refactor --- Tests/ElixxirDAppsSDKTests/MessageSendReportTests.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Tests/ElixxirDAppsSDKTests/MessageSendReportTests.swift b/Tests/ElixxirDAppsSDKTests/MessageSendReportTests.swift index 8ad3a166..8fd6625e 100644 --- a/Tests/ElixxirDAppsSDKTests/MessageSendReportTests.swift +++ b/Tests/ElixxirDAppsSDKTests/MessageSendReportTests.swift @@ -30,9 +30,8 @@ final class MessageSendReportTests: XCTestCase { 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) + + let report = try MessageSendReport.decode(jsonData) XCTAssertNoDifference(report, MessageSendReport( roundList: nil, -- GitLab