Skip to content

Commit

Permalink
added another test for close case
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahroz16 committed Apr 19, 2023
1 parent 634d9cb commit 34a6b5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/MessagingInApp/MessagingInAppImplementationTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,14 @@ class MessagingInAppImplementationTest: UnitTest {
action: givenAction,
name: givenName
)

XCTAssertEqual(eventListenerMock.messageActionTakenCallsCount, 1)
XCTAssertEqual(eventListenerMock.messageActionTakenReceivedArguments?.message, expectedInAppMessage)
XCTAssertEqual(eventListenerMock.messageActionTakenReceivedArguments?.actionValue, givenAction)
XCTAssertEqual(eventListenerMock.messageActionTakenReceivedArguments?.actionName, givenName)

// make sure there is no click tracking for "close" action
XCTAssertEqual(backgroundQueueMock.addTrackInAppDeliveryTaskCallsCount, 0)
}

func test_inAppTracking_givenCustomAction_expectBQTrackInAppClicked() {
Expand Down

0 comments on commit 34a6b5f

Please sign in to comment.