Skip to content

Commit

Permalink
chore: added additional data to ping_success (RMCCX-7616)
Browse files Browse the repository at this point in the history
  • Loading branch information
SoumenRautray committed Nov 25, 2024
1 parent 4fdb130 commit 050b5b2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions Tests/Tests/Payloads/ping_success.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,31 @@
"customJson": {
"pushPrimer": {
"button": 2
},
"background": {
"opacity": 0.6
},
"clickableImage":{
"url":"https://www.google.com"
},
"carousel": {
"images": {
"0": {
"link": "https://redirecturl1",
"img_url": "URL link",
"alt_text": "unable to load image"
},
"1": {
"link": "https://redirecturl2",
"img_url": "URL link",
"alt_text": "unable to load image"
},
"2": {
"link": "https://redirecturl3",
"img_url": "URL link",
"alt_text": "unable to load image"
}
}
}
},
"messagePayload": {
Expand Down
2 changes: 1 addition & 1 deletion Tests/Tests/SerializationSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class SerializationSpec: QuickSpec {
it("should serialize with correct property names") {
let identifier = UserIdentifier(type: .idTrackingIdentifier, identifier: "TheUserID")
let encoder = JSONEncoder()

encoder.outputFormatting = .sortedKeys
let encodedData = try? encoder.encode(identifier)
expect(encodedData).toNot(beNil())
let encodedString = String(data: encodedData!, encoding: .utf8)
Expand Down

0 comments on commit 050b5b2

Please sign in to comment.