Move push notification to new infrastructure.

This commit is contained in:
Blade Barringer
2015-10-28 21:36:04 -05:00
parent ab1ac1f543
commit 55fcf678c3
2 changed files with 26 additions and 15 deletions
@@ -0,0 +1,26 @@
import {
generateUser,
requester,
} from '../../../helpers/api.helper';
describe('POST /user/pushDevice', () => {
let api;
beforeEach(() => {
return generateUser().then((user) => {
api = requester(user);
});
});
it('registers a device id', () => {
return api.post('/user/pushDevice', {
regId: '123123',
type: 'android',
}).then((devices) => {
let device = devices[0];
expect(device._id).to.exist;
expect(device.regId).to.eql('123123');
expect(device.type).to.eql('android');
});
});
});