Skip to content

Commit

Permalink
fix: pushEventHandler test
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahroz16 committed Feb 23, 2024
1 parent 92492ff commit dc80fc2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Tests/MessagingPush/PushHandling/PushEventHandlerTest.swift
Expand Up @@ -7,15 +7,22 @@ class PushEventHandlerTest: UnitTest {
private var pushEventHandler: PushEventHandler!

private var pushEventHandlerProxy: PushEventHandlerProxy {
diGraph.pushEventHandlerProxy
diGraphShared.pushEventHandlerProxy
}

private var pushClickHandler = PushClickHandlerMock()

override func setUp() {
super.setUp()

pushEventHandler = IOSPushEventListener(jsonAdapter: diGraph.jsonAdapter, pushEventHandlerProxy: pushEventHandlerProxy, moduleConfig: MessagingPushConfigOptions(), pushClickHandler: pushClickHandler, pushHistory: diGraph.pushHistory, logger: log)
pushEventHandler = IOSPushEventListener(
jsonAdapter: diGraph.jsonAdapter,
pushEventHandlerProxy: pushEventHandlerProxy,
moduleConfig: diGraphShared.messagingPushConfigOptions,
pushClickHandler: pushClickHandler,
pushHistory: diGraphShared.pushHistory,
logger: diGraph.logger
)
}

// MARK: onPushAction
Expand Down

0 comments on commit dc80fc2

Please sign in to comment.