Skip to content

Commit 424ec1d

Browse files
committed
refactor
1 parent 4d3bed8 commit 424ec1d

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

spec/APNS.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ describe('APNS', () => {
316316
});
317317

318318
it('does log on invalid APNS notification', async () => {
319-
let args = {
319+
const args = {
320320
cert: new Buffer('testCert'),
321321
key: new Buffer('testKey'),
322322
production: true,

spec/GCM.spec.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ describe('GCM', () => {
6161
it('does log on invalid APNS notification', async () => {
6262
const log = require('npmlog');
6363
const spy = spyOn(log, 'warn');
64-
var args = {
65-
apiKey: 'apiKey'
66-
};
67-
const gcm = new GCM(args);
64+
const gcm = new GCM({apiKey: 'apiKey'});
6865
gcm.send();
6966
expect(spy).toHaveBeenCalled();
7067
});

0 commit comments

Comments
 (0)