Skip to content

Commit

Permalink
Fix compiler warnings and private init.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsymons committed May 6, 2024
1 parent 2bab68a commit d218ef2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class RemoteMessagingPercentileUserDefaultsStore: RemoteMessagingPercenti

private let userDefaults: UserDefaults

init(userDefaults: UserDefaults) {
public init(userDefaults: UserDefaults) {
self.userDefaults = userDefaults
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ class RemoteMessagingPercentileUserDefaultsStoreTests: XCTestCase {

func testWhenFetchingPercentileForMultipleMessages_ThenEachMessageHasIndependentPercentile() {
let store = RemoteMessagingPercentileUserDefaultsStore(userDefaults: userDefaults)
let percentile1 = store.percentile(forMessageId: "message-1")
let percentile2 = store.percentile(forMessageId: "message-2")
let percentile3 = store.percentile(forMessageId: "message-3")
_ = store.percentile(forMessageId: "message-1")
_ = store.percentile(forMessageId: "message-2")
_ = store.percentile(forMessageId: "message-3")

let percentileDictionary = userDefaults.dictionary(
forKey: RemoteMessagingPercentileUserDefaultsStore.Constants.remoteMessagingPercentileMapping
Expand Down

0 comments on commit d218ef2

Please sign in to comment.