Skip to content

Commit 85afab8

Browse files
committed
Merge pull request #1 from rogerhu/master
Expose these two methods
2 parents d1fe96f + da4e08c commit 85afab8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/APNS.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,9 @@ function generateNotification(coreData, expirationTime) {
219219
return notification;
220220
}
221221

222+
APNS.generateNotification = generateNotification;
223+
222224
if (process.env.TESTING) {
223-
APNS.generateNotification = generateNotification;
224225
APNS.chooseConns = chooseConns;
225226
APNS.handleTransmissionError = handleTransmissionError;
226227
}

src/GCM.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,9 @@ function sliceDevices(devices, chunkSize) {
147147
return chunkDevices;
148148
}
149149

150+
GCM.generateGCMPayload = generateGCMPayload;
151+
150152
if (process.env.TESTING) {
151-
GCM.generateGCMPayload = generateGCMPayload;
152153
GCM.sliceDevices = sliceDevices;
153154
}
154155

0 commit comments

Comments
 (0)