Skip to content

Commit 6eba82f

Browse files
committed
Clarify use of pushId, and timeStamp
1 parent d2c8e06 commit 6eba82f

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

spec/FCM.spec.js

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -343,13 +343,14 @@ describe('FCM', () => {
343343
keyAgain: 'valueAgain',
344344
};
345345

346-
const unusedPushId = 'pushId';
347-
const unusedTimeStamp = 1454538822113;
346+
// unused when generating apple payload, required by Parse Android SDK
347+
const pushId = 'pushId';
348+
const timeStamp = 1454538822113;
348349

349350
const payload = FCM.generateFCMPayload(
350351
data,
351-
unusedPushId,
352-
unusedTimeStamp,
352+
pushId,
353+
timeStamp,
353354
['tokenTest'],
354355
'apple',
355356
);
@@ -381,13 +382,14 @@ describe('FCM', () => {
381382
keyAgain: 'valueAgain',
382383
};
383384

384-
const unusedPushId = 'pushId';
385-
const unusedTimeStamp = 1454538822113;
385+
// unused when generating apple payload, required by Parse Android SDK
386+
const pushId = 'pushId';
387+
const timeStamp = 1454538822113;
386388

387389
const payload = FCM.generateFCMPayload(
388390
data,
389-
unusedPushId,
390-
unusedTimeStamp,
391+
pushId,
392+
timeStamp,
391393
['tokenTest'],
392394
'apple',
393395
);
@@ -428,13 +430,14 @@ describe('FCM', () => {
428430
},
429431
};
430432

431-
const unusedPushId = 'pushId';
432-
const unusedTimeStamp = 1454538822113;
433+
// unused when generating apple payload, required by Parse Android SDK
434+
const pushId = 'pushId';
435+
const timeStamp = 1454538822113;
433436

434437
const payload = FCM.generateFCMPayload(
435438
data,
436-
unusedPushId,
437-
unusedTimeStamp,
439+
pushId,
440+
timeStamp,
438441
['tokenTest'],
439442
'apple',
440443
);

0 commit comments

Comments
 (0)