You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
describe('GCM payloads can be converted to compatible FCMv1 payloads',()=>{
87
-
it('can generate GCM Payload without expiration time',(done)=>{
84
+
it('can generate GCM Payload without expiration time',()=>{
88
85
// To maintain backwards compatibility with GCM payload format
89
86
// See corresponding test with same test label in GCM.spec.js
90
87
@@ -122,10 +119,9 @@ describe('FCM', () => {
122
119
123
120
constdataFromUser=fcmPayload.android.data;
124
121
expect(dataFromUser).toEqual(requestData.data);
125
-
done();
126
122
});
127
123
128
-
it('can generate GCM Payload with valid expiration time',(done)=>{
124
+
it('can generate GCM Payload with valid expiration time',()=>{
129
125
// To maintain backwards compatibility with GCM payload format
130
126
// See corresponding test with same test label in GCM.spec.js
131
127
@@ -172,10 +168,9 @@ describe('FCM', () => {
172
168
173
169
constdataFromUser=fcmPayload.android.data;
174
170
expect(dataFromUser).toEqual(requestData.data);
175
-
done();
176
171
});
177
172
178
-
it('can generate GCM Payload with too early expiration time',(done)=>{
173
+
it('can generate GCM Payload with too early expiration time',()=>{
179
174
// To maintain backwards compatibility with GCM payload format
180
175
// See corresponding test with same test label in GCM.spec.js
181
176
@@ -213,10 +208,9 @@ describe('FCM', () => {
213
208
214
209
constdataFromUser=fcmPayload.android.data;
215
210
expect(dataFromUser).toEqual(requestData.data);
216
-
done();
217
211
});
218
212
219
-
it('can generate GCM Payload with too late expiration time',(done)=>{
213
+
it('can generate GCM Payload with too late expiration time',()=>{
220
214
constexpirationTime=2454538822113;
221
215
222
216
constrequestData={
@@ -255,7 +249,6 @@ describe('FCM', () => {
255
249
256
250
constdataFromUser=fcmPayload.android.data;
257
251
expect(dataFromUser).toEqual(requestData.data);
258
-
done();
259
252
});
260
253
});
261
254
@@ -265,7 +258,7 @@ describe('FCM', () => {
265
258
// We also do not need to pass APNS headers like expiration_time, collapse_id etc to FCM.generatePayload() as is done for APNS._generateNotification() for generating the payload.
266
259
// APNS headers get set if present in the payload data.
267
260
describe('APNS payloads can be converted to compatible FCMv1 payloads',()=>{
268
-
it('can generate APNS notification',(done)=>{
261
+
it('can generate APNS notification',()=>{
269
262
// To maintain backwards compatibility with APNS payload format
270
263
// See corresponding test with same test label in APNS.spec.js
271
264
@@ -339,10 +332,9 @@ describe('FCM', () => {
339
332
340
333
expect(payload.time).toEqual(timeStampISOStr);
341
334
expect(payload['push_id']).toEqual(pushId);
342
-
done();
343
335
});
344
336
345
-
it('sets push type to alert if not defined explicitly',(done)=>{
337
+
it('sets push type to alert if not defined explicitly',()=>{
0 commit comments