Commit 23f6571
committed
Add JSON stringifier for IAMs in unit tests
- Some unit tests were using an IAM's `jsonRepresentation` to use in server responses
- `jsonRepresentation` uses key of "messageId" so we need to replace that with "id" when working with the backend
- added `convertIAMtoJson` method that replaces "messageId" with "id"
- refactored code to use this method instead of `jsonRepresentation`1 parent cac1989 commit 23f6571
File tree
3 files changed
+15
-3
lines changed- iOS_SDK/OneSignalSDK/UnitTests
3 files changed
+15
-3
lines changedLines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
| 493 | + | |
| 494 | + | |
494 | 495 | | |
495 | 496 | | |
496 | 497 | | |
| |||
1525 | 1526 | | |
1526 | 1527 | | |
1527 | 1528 | | |
1528 | | - | |
| 1529 | + | |
| 1530 | + | |
1529 | 1531 | | |
1530 | 1532 | | |
1531 | 1533 | | |
| |||
1642 | 1644 | | |
1643 | 1645 | | |
1644 | 1646 | | |
1645 | | - | |
| 1647 | + | |
| 1648 | + | |
1646 | 1649 | | |
1647 | 1650 | | |
1648 | 1651 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
248 | 256 | | |
249 | 257 | | |
250 | 258 | | |
| |||
0 commit comments