SDK Bump to 1.0.80 and push notifications filtering (#1131)

* filtering nil notifications

* updated the sdk
This commit is contained in:
Mauro
2023-06-22 13:24:37 +02:00
committed by GitHub
parent 8b11a0a5ec
commit 8e8bb7a3e7
8 changed files with 23 additions and 13 deletions
@@ -15,6 +15,8 @@
//
@testable import ElementX
import Combine
import Foundation
import XCTest
@@ -39,7 +41,8 @@ class BugReportServiceTests: XCTestCase {
includeCrashLog: true,
githubLabels: [],
files: [])
let response = try await bugReportService.submitBugReport(bugReport, progressListener: nil).get()
let progressSubject = CurrentValueSubject<Double, Never>(0.0)
let response = try await bugReportService.submitBugReport(bugReport, progressListener: progressSubject).get()
XCTAssertFalse(response.reportUrl.isEmpty)
}
@@ -64,7 +67,8 @@ class BugReportServiceTests: XCTestCase {
includeCrashLog: true,
githubLabels: [],
files: [])
let response = try await service.submitBugReport(bugReport, progressListener: nil).get()
let progressSubject = CurrentValueSubject<Double, Never>(0.0)
let response = try await service.submitBugReport(bugReport, progressListener: progressSubject).get()
XCTAssertEqual(response.reportUrl, "https://example.com/123")
}