Skip to content

Commit 5d343ef

Browse files
committed
added test for thead-id key
1 parent 7e488cf commit 5d343ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/APNS.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ describe('APNS', () => {
166166
'content-available': 1,
167167
'mutable-content': 1,
168168
'category': 'INVITE_CATEGORY',
169+
'threadId': 'a-thread-id',
169170
'key': 'value',
170171
'keyAgain': 'valueAgain'
171172
};
@@ -180,6 +181,7 @@ describe('APNS', () => {
180181
expect(notification.aps['content-available']).toEqual(1);
181182
expect(notification.aps['mutable-content']).toEqual(1);
182183
expect(notification.aps.category).toEqual(data.category);
184+
expect(notification.aps.threadId).toEqual(data.threadId);
183185
expect(notification.payload).toEqual({
184186
'key': 'value',
185187
'keyAgain': 'valueAgain'

0 commit comments

Comments
 (0)