Revert "Deprecate API v2" (#7801)

This commit is contained in:
Matteo Pagliazzi
2016-07-17 18:15:25 +02:00
committed by GitHub
parent 45c31a2bcf
commit 590adb3438
193 changed files with 11487 additions and 230 deletions
@@ -0,0 +1,24 @@
import {
generateUser,
} from '../../../../helpers/api-integration/v2';
xdescribe('POST /user/pushDevice', () => {
let user;
beforeEach(async () => {
user = await generateUser();
});
it('registers a device id', async () => {
return user.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');
});
});
});